sub c {(8**$_[0]-1)/7}
Proof: For any x and n, by factoring, x**(n)-1 == (x-1)(x**(n-1)+x**(n-2)+...+1). So: x**(n-1)+x**(n-2)+...+1==(x**(n)-1)/(x-1). So, for x == 8: 8**(n-1)+8**(n-2)+...+1==(8**(n)-1)/7. And there, the left side is the sequence, the right side my solution.
In reply to Re: Intriguing problem; maybe golf?
by wog
in thread Intriguing problem; maybe golf?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |