A215036 2 followed by "1,0" repeated.
2, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1
Offset: 1
Links
- StackExchange, A prime number pattern, Jul 29 2012.
- Index entries for linear recurrences with constant coefficients, signature (0,1).
Crossrefs
Programs
-
Mathematica
PadRight[{2},120,{0,1}] (* Harvey P. Dale, Nov 29 2018 *)
-
PARI
if(n%2,2*(n<2),1) \\ Charles R Greathouse IV, Aug 06 2012
Comments