OFFSET
1,2
COMMENTS
From Omar E. Pol, Aug 04 2009: (Start)
Zero together with the even nonprimes.
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (2,-1).
FORMULA
a(n) = 2*A087156(n).
From Elmo R. Oliveira, May 20 2026: (Start)
G.f.: 2*x^2*(2 - x)/(1 - x)^2.
E.g.f.: 2*x*(exp(x) - 1).
a(n) = 2*a(n-1) - a(n-2) for n >= 4. (End)
MATHEMATICA
Drop[Range[0, 132, 2], {2}] (* Harvey P. Dale, May 05 2012 *)
PROG
(PARI) a(n)=if(n>1, 2*n, 0) \\ Charles R Greathouse IV, Apr 17 2024
(Python)
def A163300(n): return n<<1 if n>1 else 0 # Chai Wah Wu, Jul 31 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Juri-Stepan Gerasimov, Jul 26 2009
EXTENSIONS
New definition from Charles R Greathouse IV, Jun 23 2024
STATUS
approved
