OFFSET
1,3
COMMENTS
A reinversion-type sequence using pi as the inverse and the Hofstadter Q-numbers A005185 as the pattern sequence.
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
MATHEMATICA
hrid[n] =PrimePi[n-PrimePi[n-1]] + hrid[n - hrid[n-2]] digits=256 a=Table[hrid[n], {n, 1, digits}]
PROG
(Haskell)
import Data.List (genericIndex)
a087875 n = genericIndex a087875_list (n-1)
a087875_list = 1 : 1 : zipWith (+)
(map a087875 $ zipWith (-) [3..] a087875_list)
(map a000720 $ zipWith (-) [3..] $ tail a000720_list)
-- Reinhard Zumkeller, Sep 21 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Roger L. Bagula, Oct 11 2003
STATUS
approved