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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A304366 Numbers n with additive persistence = 1. 5
10, 11, 12, 13, 14, 15, 16, 17, 18, 20, 21, 22, 23, 24, 25, 26, 27, 30, 31, 32, 33, 34, 35, 36, 40, 41, 42, 43, 44, 45, 50, 51, 52, 53, 54, 60, 61, 62, 63, 70, 71, 72, 80, 81, 90, 100, 101, 102, 103, 104, 105, 106, 107, 108, 110, 111, 112, 113, 114, 115, 116 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

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

Eric Weisstein's World of Mathematics, Additive Persistence.

FORMULA

A031286(a(n)) = 1.

EXAMPLE

Adding the digits of 10 gives 1, a single-digit number, so 10 is a member. Adding the digits of 39 gives 12, which is a 2-digit number, so 39 is not a member. - Michael B. Porter, May 16 2018

MATHEMATICA

Select[Range@ 120, Length@ FixedPointList[Total@ IntegerDigits@ # &, #] == 3 &] (* Michael De Vlieger, May 14 2018 *)

PROG

(PARI) nb(n) = {my(nba = 0); while (n > 9, n = sumdigits(n); nba++); nba; }

isok(n) = nb(n) == 1; \\ Michel Marcus, May 13 2018

CROSSREFS

Cf. A031286.

Cf. Numbers with additive persistence k: A304367 (k=2), A304368 (k=3), A304373 (k=4).

Sequence in context: A244112 A088476 A248014 * A008715 A115844 A008714

Adjacent sequences:  A304363 A304364 A304365 * A304367 A304368 A304369

KEYWORD

nonn,base

AUTHOR

Jaroslav Krizek, May 11 2018

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 October 17 15:01 EDT 2019. Contains 328116 sequences. (Running on oeis4.)