login
A133368
Period 5: 1, 1, 3, 7, 3.
0
1, 1, 3, 7, 3, 1, 1, 3, 7, 3, 1, 1, 3, 7, 3, 1, 1, 3, 7, 3, 1, 1, 3, 7, 3, 1, 1, 3, 7, 3, 1, 1, 3, 7, 3, 1, 1, 3, 7, 3, 1, 1, 3, 7, 3, 1, 1, 3, 7, 3, 1, 1, 3, 7, 3, 1, 1, 3, 7, 3, 1, 1, 3, 7, 3, 1, 1, 3, 7, 3, 1, 1, 3, 7, 3, 1, 1, 3, 7, 3, 1, 1, 3, 7, 3, 1, 1, 3, 7, 3, 1, 1, 3, 7, 3, 1, 1, 3, 7, 3, 1, 1, 3, 7, 3
OFFSET
0,3
FORMULA
a(n) = n^2 - n + 1 (mod 10). - Arkadiusz Wesolowski, Jul 02 2012
G.f.: (1 + x + 3*x^2 + 7*x^3 + 3*x^4)/(1 - x^5). - Arkadiusz Wesolowski, Jul 03 2012
MATHEMATICA
Flatten@Table[{1, 1, 3, 7, 3}, {16}] (* Arkadiusz Wesolowski, Jul 02 2012 *)
CROSSREFS
Sequence in context: A233380 A320027 A134731 * A153027 A161127 A256978
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Oct 27 2007
STATUS
approved