OFFSET
0,2
COMMENTS
From Paschen spectrum of hydrogen.
Numbers that are congruent to 0 or 4 mod 10. - Philippe Deléham, Oct 18 2011
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..5000
Index entries for linear recurrences with constant coefficients, signature (1,1,-1).
FORMULA
a(n) = 10*n - 6 - a(n-1) (with a(0)=0). - Vincenzo Librandi, Nov 26 2010
a(n) = Sum_{k>=0} A030308(n,k)*b(k) with b(0)=4 and b(k) = 5*2^k = A020714(k) for k>0. - Philippe Deléham, Oct 18 2011
From Colin Barker, May 14 2012: (Start)
a(n) = (-1 + (-1)^n + 10*n)/2.
a(n) = a(n-1) + a(n-2) - a(n-3).
G.f.: x*(4+6*x)/((1-x)^2*(1+x)). (End)
E.g.f.: 1/2 (exp(-x) - (1 - 10*x)*exp(x)). - G. C. Greubel, Mar 10 2022
Sum_{n>=1} (-1)^(n+1)/a(n) = sqrt(1-2/sqrt(5))*Pi/20 - log(phi)/(4*sqrt(5)) + log(5)/8, where phi is the golden ratio (A001622). - Amiram Eldar, Sep 17 2023
MATHEMATICA
Select[Range[0, 100], MemberQ[{0, 4}, Mod[#, 10]] &] (* K G Teal, Dec 02 2014 *)
PROG
(Magma) [5*n - (n mod 2): n in [0..60]]; // G. C. Greubel, Mar 10 2022
(Sage) [5*n - (n%2) for n in (0..60)] # G. C. Greubel, Mar 10 2022
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Paul Curtz, Nov 02 2008
STATUS
approved