login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A356520 Numbers k such that A000005(A007953(k)) = A007953(k). 1
1, 2, 10, 11, 20, 100, 101, 110, 200, 1000, 1001, 1010, 1100, 2000, 10000, 10001, 10010, 10100, 11000, 20000, 100000, 100001, 100010, 100100, 101000, 110000, 200000, 1000000, 1000001, 1000010, 1000100, 1001000, 1010000, 1100000, 2000000, 10000000, 10000001 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Union of A011557 and A052216. I.e., numbers with digital sum 1 or 2. - David A. Corneth, Aug 10 2022
LINKS
EXAMPLE
k = 101; A000005(A007953(101)) = A007953(101) = 2, thus k = 101 is in the sequence.
MATHEMATICA
Select[Range[1, 10000001], Plus @@ IntegerDigits[#] < 3 &] (* Amiram Eldar, Aug 10 2022 *)
PROG
(PARI) isok(k) = my(s=sumdigits(k)); numdiv(s) == s; \\ Michel Marcus, Aug 10 2022
(PARI) is(n) = my(s = sumdigits(n)); s == 1 || s == 2 \\ David A. Corneth, Aug 10 2022
(Python)
from itertools import count, islice
def agen():
for i in count(0):
yield from [10**i] + [10**i + 10**j for j in range(i+1)]
print(list(islice(agen(), 37))) # Michael S. Branicky, Aug 10 2022
CROSSREFS
Sequence in context: A051373 A131096 A069263 * A174569 A179884 A174570
KEYWORD
nonn,easy,base
AUTHOR
Ctibor O. Zizka, Aug 10 2022
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 01:35 EDT 2024. Contains 371964 sequences. (Running on oeis4.)