A151984 Numbers that are congruent to {0, 1} mod 64.
0, 1, 64, 65, 128, 129, 192, 193, 256, 257, 320, 321, 384, 385, 448, 449, 512, 513, 576, 577, 640, 641, 704, 705, 768, 769, 832, 833, 896, 897, 960, 961, 1024, 1025, 1088, 1089, 1152, 1153, 1216, 1217, 1280, 1281, 1344, 1345, 1408, 1409, 1472, 1473, 1536, 1537
Offset: 1
Links
- Index entries for linear recurrences with constant coefficients, signature (1,1,-1).
Programs
-
Mathematica
Flatten[{#,#+1}&/@(64 Range[30])] (* Harvey P. Dale, Feb 01 2011 *)
-
PARI
forstep(n=0,400,[1,63],print1(n", ")) \\ Charles R Greathouse IV, Oct 17 2011
Formula
a(n+1) = Sum_{k>=0} A030308(n,k)*b(k) with b(0)=1, b(k)=2^(n+5) for k > 0. - Philippe Deléham, Oct 17 2011
From Colin Barker, Nov 29 2012: (Start)
a(n) = (-95 - 31*(-1)^n + 64*n)/2.
a(n) = a(n-1) + a(n-2) - a(n-3).
G.f.: x^2*(63*x+1)/((x-1)^2*(x+1)). (End)
Comments