SOLUTION: I would like to get an equation for the following table: Values are separated using (~) X ~Y 1 ~1 2 ~3 3 ~7 4 ~15 5 ~31 6 ~63 7 ~127 8

Algebra ->  Equations -> SOLUTION: I would like to get an equation for the following table: Values are separated using (~) X ~Y 1 ~1 2 ~3 3 ~7 4 ~15 5 ~31 6 ~63 7 ~127 8       Log On


   



Question 864898: I would like to get an equation for the following table:
Values are separated using (~)
X ~Y
1 ~1
2 ~3
3 ~7
4 ~15
5 ~31
6 ~63
7 ~127
8 ~255
9 ~511
10 ~1023
I have been able to get an equation for the answers using previous answers, but I need an equation where I can put in a number (X) and get an answer (Y). Thank you

Found 2 solutions by jim_thompson5910, richwmiller:
Answer by jim_thompson5910(35256) About Me  (Show Source):
You can put this solution on YOUR website!
If you were to add 1 to each number in the y column, you'd get


1+1=2
3+1=4
7+1=8
15+1=16
31+1=32
63+1=64
127+1=128
255+1=256
511+1=512
1023 +1=1024


So these are powers of 2. For instance, 4 = 2^2, 16 = 2^4, 256 = 2^8, etc


To get back to the original y list, we just subtract off 1 from the power of 2. Example: 1023 = (2^10) - 1 = 1024 - 1


So the overall equation is y+=+2%5Ex+-+1

Answer by richwmiller(17219) About Me  (Show Source):
You can put this solution on YOUR website!
(1,1),
(2,3),
(3,7),
(4,15),
(5,31),
(6,63),
(7,127),
(8,255),
(9,511),
(10,1023),
y=(2^x)-1