|
Search: id:A007679
|
|
|
| A007679 |
|
If n mod 4 = 0 then 2^(n-1)+1 elif n mod 4 = 2 then 2^(n-1)-1 else 2^(n-1). (Formerly M3359)
|
|
+0 1
|
|
| 1, 1, 4, 9, 16, 31, 64, 129, 256, 511, 1024, 2049, 4096, 8191, 16384, 32769, 65536, 131071, 262144, 524289, 1048576, 2097151, 4194304, 8388609, 16777216, 33554431, 67108864, 134217729, 268435456, 536870911
(list; graph; listen)
|
|
|
OFFSET
|
1,3
|
|
|
REFERENCES
|
I. Nemes et al., How to do Monthly problems with your computer, Amer. Math. Monthly, 104 (1997), 505-519.
|
|
FORMULA
|
Sum 2^k C(n-k, 2k) .n /(n-k), k = 0..[ n/3 ].
|
|
CROSSREFS
|
Sequence in context: A073141 A093175 A138992 this_sequence A068037 A014764 A068952
Adjacent sequences: A007676 A007677 A007678 this_sequence A007680 A007681 A007682
|
|
KEYWORD
|
easy,nonn
|
|
AUTHOR
|
njas, R. K. Guy, Simon Plouffe.
|
|
|
Search completed in 0.002 seconds
|