A358538 Autobiographical numbers: the first digit of the term counts how many 0's the term in total has, the second how many 1's etc. up to the last digit but no more than b-1, where b is the base of the sequence. This sequence is in base b=10.
1210, 2020, 21200, 3211000, 42101000, 521001000, 6210001000, 52200100019, 52200100108, 52200101007, 52200110006, 52201100004, 52210100003, 53010100019, 53010100108, 53010101007, 53010110006, 53011100004, 53110100002, 61200020006, 62200010001, 63010010001, 70200002007, 72100001000, 431110000299
Offset: 1
Examples
63010010001 is a term: we have six 0's, three 1's, one 3 and one 6 as digits in the term, visualized as follows: Digits: 0123456789 term: 63010010001. Note that this example also shows, starting from the 11th digit, there is no more representation of the frequency of that digit, because only the first b digits of its base-b expansion count the occurrences of the corresponding digit. In this case, the last digit, 1, is the 11th.
Links
- Michael S. Branicky, Table of n, a(n) for n = 1..10000
- Michael S. Branicky, Python program
Programs
-
Python
# see linked program
Extensions
a(14)-a(19) inserted and a(25) from Michael S. Branicky, Nov 21 2022
Comments