|
|
A090009
|
|
Begins the earliest length-n chain of primes such that any term in the chain equals the previous term increased by the sum of its digits.
|
|
8
|
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
|
|
LINKS
|
|
|
EXAMPLE
|
11 begins the earliest chain 11, 13, 17 of three primes such that any term in the chain equals the previous term increased by the sum of its digits, viz., 13 = 11 + 2, 17 = 13 + 4. Hence a(3) = 11.
|
|
PROG
|
(PARI) A090009(n, P=2)=forprime(p=P, , P=p; for(i=2, n, isprime(P=A062028(P))||next(2)); return(p))
|
|
CROSSREFS
|
|
|
KEYWORD
|
base,more,nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|