OFFSET
1,1
COMMENTS
The odd numbers with terminal digit 3 or 9.
LINKS
FORMULA
G.f.: x*(3 + 6*x + x^2)/((1 + x)*(1 - x)^2).
a(n) = a(n-1) + a(n-2) - a(n-3).
a(n) = 5*n - (3 - (-1)^n)/2.
Sum_{n>=1} (-1)^(n+1)/a(n) = sqrt((5+sqrt(5))/2)*Pi/10 - 3*log(phi)/(2*sqrt(5)), where phi is the golden ratio (A001622). - Amiram Eldar, Apr 15 2023
MATHEMATICA
Table[5 n - (3 - (-1)^n)/2, {n, 1000}] (* or *) Select[ Range [1000], OddQ[#] && MemberQ[{3, 4}, Mod[#, 5]] &]
LinearRecurrence[{1, 1, -1}, {3, 9, 13}, 60] (* Harvey P. Dale, Feb 12 2023 *)
PROG
(Magma) [5*n-(3-(-1)^n)/2: n in [1..60]]; // Vincenzo Librandi, Jan 25 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Mikk Heidemaa, Jan 25 2016
EXTENSIONS
Edited by Bruno Berselli, Jan 25 2016
STATUS
approved