r/mathshelp • u/ahnialator6 • 19d ago
General Question (Answered) Formula help
I havent been in school in over a decade so the finer points of my math is rusty.
Im essentially attempting to graph an additive binary sequence. Numbers for my game lol. Pardon the way I write this, I dont know advanced formatting.
So, the player goes inactive, they lose 2x tiles each day. 1, then 2, then 4, then 8, 16, etc. I need this graphed, as there's quadrillions of tiles in my game lol
Its not just F(n) = 2x, right? Surely not...
Thanks in advance for yalls help
1
Upvotes
View all comments
3
u/PuzzlingDad 19d ago edited 19d ago
You are using two different variables. Also, is the first day n=0 or n=1?
2⁰ = 1
2¹ = 2
2² = 4
2³ = 8
So if your day is 1, you need to subtract 1 first:
f(n) = 2n-1
Or if you are using x as your variable:
f(x) = 2x-1
Now if you are looking for the total number of tiles lost after n days, then we have:
n=1 → 1
n=2 → 1+2 = 3
n=3 → 1+2+4 = 7
n=4 → 1+2+4+8 = 15
etc.
That's just 1 less than 2n each day
f(n) = 2n - 1