OFFSET
0,4
LINKS
Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1).
FORMULA
G.f.: (x + 11*x^3 + 13*x^5 + 23*x^7 + 25*x^9 + 3*x^11 + 5*x^13 + 15*x^15 + 17*x^17 + 27*x^19 + 29*x^21 + 7*x^23 + 9*x^25 + 19*x^27 + 21*x^29 + 31*x^31)/(1-x^32).
a(n) = a(n-32).
MATHEMATICA
PowerMod[Range[0, 100], 7, 32]
PROG
(Magma) [Modexp(n, 7, 32): n in [0..100]];
(PARI) a(n) = n^7 % 32; \\ Altug Alkan, Apr 10 2016
(Python) for n in range(0, 50):print((n**7)%32) # Soumil Mandal, Apr 11 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Apr 10 2016
STATUS
approved