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.

Showing 1-1 of 1 results.

A332177 The digitsum of a(n) is the product of the digits of a(n+1).

Original entry on oeis.org

0, 10, 1, 11, 2, 12, 3, 13, 4, 14, 5, 15, 6, 16, 7, 17, 8, 18, 9, 19, 25, 71, 24, 23, 51, 32, 115, 117, 33, 61, 171, 91, 52, 711, 133, 1117, 125, 42, 116, 81, 313, 1171, 152, 118, 215, 124, 1711, 251, 142, 7111, 512, 181, 521, 214, 111117, 26, 222, 123, 132, 161, 241, 111171, 34, 111711, 43, 117111, 62, 412
Offset: 1

Views

Author

Eric Angelini and Carole Dubois, Oct 02 2020

Keywords

Comments

This is the lexicographically earliest infinite sequence of distinct nonnegative terms with this property; a(1) and a(2) are the only terms containing a zero.

Examples

			a(20) = 19 and a(21) = 25; the digitsum of 19 is 10 and 10 is 2*5;
a(21) = 25 and a(22) = 71; the digitsum of 25 is 7 and 7 is 7*1;
a(22) = 71 and a(23) = 24; the digitsum of 71 is 8 and 8 is 2*4;
a(23) = 24 and a(25) = 23; the digitsum of 24 is 6 and 6 is 2*3; etc.
		

Crossrefs

Cf. A330521.

Programs

  • Magma
    a:=[0,10]; for m in [3..70] do k:=1; while k in a or (IsPrime(&+Intseq(k)) and &+Intseq(k) ge 11) or &*Intseq(k) ne &+Intseq(a[m-1]) do k:=k+1; end while; Append(~a,k); end for; a; // Marius A. Burtea, Oct 16 2020
Showing 1-1 of 1 results.