cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A156672 a(1)=2, a(n+1) is the smallest prime >= a(n) + sum of digits of a(n).

Original entry on oeis.org

2, 5, 11, 13, 17, 29, 41, 47, 59, 73, 83, 97, 113, 127, 137, 149, 163, 173, 191, 211, 223, 233, 241, 251, 263, 277, 293, 307, 317, 331, 347, 367, 383, 397, 419, 433, 443, 457, 479, 499, 521, 541, 557, 577, 599, 631, 641, 653, 673, 691, 709, 727, 743, 757, 787
Offset: 1

Views

Author

Juri-Stepan Gerasimov, Feb 13 2009

Keywords

Comments

Heuristically, a(n) ~ kn log n for some k >= 4.5/log 10.

Examples

			2, 5(>4=2+2), 11(>10>5+5), 13(=13=11+1+1), 17(=17=13+1+3), 29(>25=17+1+7), etc.
		

Crossrefs

Cf. A156604.

Programs

  • Mathematica
    NestList[NextPrime[#+Total[IntegerDigits[#]]-1]&,2,60] (* Harvey P. Dale, Mar 25 2025 *)

Extensions

Corrected by Charles R Greathouse IV, Mar 19 2010