OFFSET
1,1
COMMENTS
Numbers congruent to 11, 29, 47, or 83 mod 90 with additive sum sequence 11 { + 18 + 18 + 36 + 18} {repeat ...}. Includes all prime numbers greater than 5 with digital root 2.
LINKS
Index entries for linear recurrences with constant coefficients, signature (1, 0, 0, 1, -1).
FORMULA
n == {11, 29, 47, 83} mod 90.
From Colin Barker, Mar 26 2018: (Start)
G.f.: x*(11 + 18*x + 18*x^2 + 36*x^3 + 7*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
11+18=29; 29+18=47; 47+36=83; 83+18=101; 101+18=119.
MATHEMATICA
Flatten[Table[90n - {79, 61, 43, 7}, {n, 30}]] (* Alonso del Arte, Mar 29 2018 *)
PROG
(PARI) Vec(x*(11 + 18*x + 18*x^2 + 36*x^3 + 7*x^4) / ((1 - x)^2*(1 + x)*(1 + x^2)) + O(x^60)) \\ Colin Barker, Mar 26 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)=2); # Muniru A Asiru, Apr 22 2018
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Gary Croft, Mar 24 2018
STATUS
approved