login
This site is supported by donations to The OEIS Foundation.

 

Logo

Annual Appeal: Today, Nov 11 2014, is the 4th anniversary of the launch of the new OEIS web site. 70,000 sequences have been added in these four years, all edited by volunteers. Please make a donation (tax deductible in the US) to help keep the OEIS running.

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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. 3
2, 11, 11, 277, 37783, 516493, 286330897, 286330897, 56676324799 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

Table of n, a(n) for n=1..9.

Carlos Rivera, Puzzle 163. P+SOD(P)

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.

MAPLE

with(numtheory);

A090009:=proc(q)

local a, b, c, d, j, n;

d:=0;

for n from 1 to q do

  a:=0; c:=ithprime(n); j:=c;

  while isprime(c) do

   a:=a+1; b:=0; while c>0 do b:=b+(c mod 10); c:=trunc(c/10); od;

   c:=j+b; j:=c; od;

   if a=d+1 then d:=a; lprint(d, ithprime(n)); j:=1;

   else if a>d+1 then for j from 1 to a-d do lprint(d+j, ithprime(n)); od; d:=a;

fi; fi; od; end:

A090009(10000000000); # Paolo P. Lava, Jun 07 2012

CROSSREFS

Sequence in context: A168413 A153705 A245521 * A153706 A201187 A068225

Adjacent sequences:  A090006 A090007 A090008 * A090010 A090011 A090012

KEYWORD

base,more,nonn

AUTHOR

Joseph L. Pe, Jan 27 2004

EXTENSIONS

a(7)-a(8) from Donovan Johnson, Jan 08 2013

a(9) from Giovanni Resta, Jan 14 2013

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Superseeker | Recent | More pages
The OEIS Community | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified December 17 18:04 EST 2014. Contains 252034 sequences.