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