OFFSET
1,2
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,0,1,-1).
FORMULA
From Mike Sheppard, Feb 18 2025 : (Start)
a(n) = a(n-1) + a(n-6) - a(n-7).
a(n) = a(n-6) + 7^2.
a(n) ~ (7^2/6)*n.
G.f.: (1 + x*(17 + x + 11*x^2 + x^3 + 17*x^4 + x^5))/(1 - x - x^6 + x^7). (End)
MATHEMATICA
Select[ Range[ 500 ], PowerMod[ #, 6, 49 ]==1& ]
LinearRecurrence[{1, 0, 0, 0, 0, 1, -1}, {1, 18, 19, 30, 31, 48, 50}, 61] (* Mike Sheppard, Feb 18 2025 *)
PROG
(PARI) isok(k) = Mod(k, 49)^6 == 1; \\ Michel Marcus, Jun 30 2021
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Robert G. Wilson v, Jun 08 2000
STATUS
approved