OFFSET
2,1
COMMENTS
Primes are the numbers >=2 which have no nontrivial divisor: a(p)=0.
Also: a(n)= A032741(n)-1, n>=2 (from number of divisors <n, called proper divisors).
LINKS
F. v. Lamoen, Wave sequences
Index entries for linear recurrences with constant coefficients, signature (1, -1, 3, -3, 3, 0, 0, 0, -1, 1, -1).
FORMULA
a(n) = 2*A038197(n-2).
a(n)=2*a(n-3)+3*a(n-6)-a(n-9)-a(n-12) - Antonio G. Astudillo (afg_astudillo(AT)hotmail.com), Jan 12 2003
G.f.: -2*x^2*(x^5-2*x^4+2*x^3-x^2-1)/((x^2-x+1)*(x^9-3*x^3+1)). - Colin Barker, Nov 09 2012
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Jason Earls, May 01 2001
STATUS
approved