login
A112514
Say what you see in previous term, same as A063850 but starting with 4.
0
4, 14, 1114, 3114, 132114, 31131214, 23411214, 22132431, 32212314, 23322114, 32232114, 23322114, 32232114, 23322114, 32232114, 23322114, 32232114, 23322114, 32232114
OFFSET
1,1
COMMENTS
Eventually periodic.
PROG
(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__
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Michele Dondi (blazar(AT)lcm.mi.infn.it), Sep 09 2005
STATUS
approved