OFFSET
1,1
COMMENTS
Numbers == {23, 41, 59, 77} mod 90 with additive sum sequence 23{+18+18+18+36} {repeat ...}. Includes all primes number > 5 with digital root 5.
LINKS
Colin Barker, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (1,0,0,1,-1).
FORMULA
Numbers == {23, 41, 59, 77} mod 90.
From Colin Barker, Mar 25 2018: (Start)
G.f.: x*(23 + 18*x + 18*x^2 + 18*x^3 + 13*x^4) / ((1 - x)^2*(1 + x)*(1 + x^2)).
a(n) = a(n-1) + a(n-4) - a(n-5) for n>5.
(End)
EXAMPLE
23+18=41; 41+18=59; 59+18=77; 77+36=113; 113+18=131.
MATHEMATICA
LinearRecurrence[{1, 0, 0, 1, -1}, {23, 41, 59, 77, 113}, 50] (* Harvey P. Dale, Jul 28 2018 *)
PROG
(PARI) Vec(x*(23 + 18*x + 18*x^2 + 18*x^3 + 13*x^4) / ((1 - x)^2*(1 + x)*(1 + x^2)) + O(x^60)) \\ Colin Barker, Mar 25 2018
(GAP) Filtered(Filtered([1..1200], n->n mod 2 <> 0 and n mod 3 <> 0 and n mod 5 <> 0), i->i-9*Int((i-1)/9)=5); # Muniru A Asiru, Apr 22 2018
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Gary Croft, Mar 24 2018
STATUS
approved