I want to get 5 items to show up based on the page number and it want it to be base on the equation P(n) = 2^x. The problem at hand is the initial value being 2 instead of 1
local base = 2
local page = buyables.pagenum.convert.Value
local rowAmount = Settings["Buyables Per Row"]
local statamount = base ^ (page * rowAmount - rowAmount)
local Buttons = {}
for i = 1, rowAmount do
statamount = statamount * base
--Do stuff with the statamount
end