login
A139788
Period 5: repeat [1, 7, 3, 9, 5].
1
1, 7, 3, 9, 5, 1, 7, 3, 9, 5, 1, 7, 3, 9, 5, 1, 7, 3, 9, 5, 1, 7, 3, 9, 5, 1, 7, 3, 9, 5, 1, 7, 3, 9, 5, 1, 7, 3, 9, 5, 1, 7, 3, 9, 5, 1, 7, 3, 9, 5, 1, 7, 3, 9, 5, 1, 7, 3, 9, 5, 1, 7, 3, 9, 5, 1, 7, 3, 9, 5, 1, 7, 3, 9, 5, 1, 7, 3, 9, 5
OFFSET
0,2
FORMULA
a(n) = (1-4n) mod 10. - Wesley Ivan Hurt, Dec 03 2022
MATHEMATICA
PadRight[{}, 100, {1, 7, 3, 9, 5}] (* Harvey P. Dale, Aug 14 2023 *)
PROG
(PARI) a(n)=[1, 7, 3, 9, 5][n%5+1] \\ Charles R Greathouse IV, Jun 02 2011
CROSSREFS
Sequence in context: A361604 A003957 A021579 * A093525 A139340 A195725
KEYWORD
nonn,easy,less
AUTHOR
Paul Curtz, May 21 2008
STATUS
approved