OFFSET
0,1
COMMENTS
Right-shifted sequence is characteristic function of prime-indexed primes (A006450). - Franklin T. Adams-Watters, Nov 17 2006
LINKS
PROG
(PARI) A111406(n) = (primepi(primepi(n+1)) - primepi(primepi(n))); \\ Antti Karttunen, Dec 07 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Nov 12 2005
EXTENSIONS
Missing right parenthesis added to the formula and case f(0) clarified by Antti Karttunen, Dec 07 2017
STATUS
approved