login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A129630 Numbers n such that sum of digits of n+1 is a prime. 1
1, 2, 4, 6, 10, 11, 13, 15, 19, 20, 22, 24, 28, 29, 31, 33, 37, 40, 42, 46, 48, 49, 51, 55, 57, 60, 64, 66, 69, 73, 75, 82, 84, 88, 91, 93, 97, 100, 101, 103, 105, 109, 110, 112, 114, 118, 119, 121, 123, 127, 130, 132, 136, 138, 139, 141, 145, 147, 150, 154, 156, 159 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

LINKS

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

FORMULA

a(n) = A028834(n) - 1.

MAPLE

P:=proc(n) local i, k, w; for i from 1 by 1 to n do w:=0; k:=binomial(i+1, i); while k>0 do w:=w+k-(trunc(k/10)*10); k:=trunc(k/10); od; if isprime(w) then print(i); fi; od; end: P(1000);

MATHEMATICA

Select[Range[200], PrimeQ[Total[IntegerDigits[# + 1]]] &]

CROSSREFS

Sequence in context: A109133 A056077 A249428 * A026429 A086917 A004789

Adjacent sequences:  A129627 A129628 A129629 * A129631 A129632 A129633

KEYWORD

nonn,base,easy

AUTHOR

Paolo P. Lava and Giorgio Balzarotti, May 31 2007

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 6 08:44 EDT 2020. Contains 333268 sequences. (Running on oeis4.)