OFFSET
1,3
EXAMPLE
a(16) = a(16-13) + a(17-13) = a(3) + a(4) = 2 + 2 = 4.
MAPLE
with(numtheory): a := proc(n) option remember: if n <= 2 and n >=1 then RETURN(1) fi: a(n-prevprime(n))+ a(n+1-prevprime(n)): end: for n from 1 to 250 do printf(`%d, `, a(n)) od:
CROSSREFS
KEYWORD
nonn
AUTHOR
Brian Wallace (wallacebrianedward(AT)yahoo.co.uk), Mar 04 2001
EXTENSIONS
More terms from James A. Sellers, Mar 15 2001
STATUS
approved