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!)
A112512 Say what you see in previous term, same as A063850, but starting with 2. 4

%I #1 Sep 21 2005 03:00:00

%S 2,12,1112,3112,132112,311322,232122,421311,14123113,41141223,

%T 24312213,32142321,23322114,32232114,23322114,32232114,23322114,

%U 32232114

%N Say what you see in previous term, same as A063850, but starting with 2.

%C Eventually periodic, eventually identical (to a shift of) A063850.

%o (Perl) #!/usr/bin/perl -l use strict; use warnings; die "Usage: $0 <number> " unless @ARGV==1; $_=shift; { print; my (%cnt, %saw); $cnt{$_}++ for /./g; s/./ $saw{$&}++ ? '' : $cnt{$&} . $& /ge; <>, redo; } __END__

%Y Cf. A005150, A005151, A063850, A112512-A112516.

%K base,easy,nonn

%O 1,1

%A Michele Dondi (blazar(AT)lcm.mi.infn.it), Sep 09 2005

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 20 00:58 EDT 2024. Contains 371798 sequences. (Running on oeis4.)