The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A113589 A complementary variation of 'n described': if n is read as "a ones b twos" then a(n) = "one a's two b's", etc. 2
0, 1, 11, 111, 1111, 11111, 111111, 1111111, 11111111, 111111111, 1, 2, 111, 1111, 11111, 111111, 1111111, 11111111, 111111111, 1111111111, 11, 111, 22, 11111, 111111, 1111111, 11111111, 111111111, 1111111111, 11111111111, 111, 1111, 11111, 222 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
FORMULA
a(A002275(n)) = n. - Rémy Sigrist, Feb 09 2022
EXAMPLE
A045918(10) = 1110 = 'one one one zero', hence a(10) = 'one one, zero ones' = 1.
A045918(11) = 21 = 'two ones', hence a(11) = 'one twos' = 2.
a(123) = 111111.
PROG
(PARI) a(n) = { my (d=[]); while (n, my (t=n%10, k=0); while (n%10==t, n\=10; k++; ); for (i=1, t, d=concat(digits(k), d))); fromdigits(d) } \\ Rémy Sigrist, Feb 09 2022
CROSSREFS
Sequence in context: A165370 A134962 A267257 * A366394 A135463 A000042
KEYWORD
base,nonn,easy
AUTHOR
Amarnath Murthy, Nov 07 2005
EXTENSIONS
Extended and corrected by Nathaniel Johnston, Apr 29 2011
a(0) = 0 prepended by Rémy Sigrist, Feb 09 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 May 30 01:30 EDT 2024. Contains 372954 sequences. (Running on oeis4.)