OFFSET
0,2
COMMENTS
The digits of each term a(n) are a permutation of those of the corresponding term A005151(n). - Chayim Lowen, Jul 16 2015
FORMULA
After a while sequence has period 2.
EXAMPLE
To get the term after 311322, we say: two 3's, two 1's, two 2's, so 232122.
MATHEMATICA
deldup[ lst_ ] := Module[ {i, s}, s={}; For[ i=1, i<=Length[ lst ], i++, If[ !MemberQ[ s, lst[ [ i ] ] ], AppendTo[ s, lst[ [ i ] ] ] ] ]; s ]; next[ term_ ] := FromDigits[ Flatten[ ({Count[ IntegerDigits[ term ], # ], #}&)/@deldup[ IntegerDigits[ term ] ] ] ]
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
N. J. A. Sloane, Aug 25 2001
EXTENSIONS
Corrected and extended by Dean Hickerson, Aug 27 2001
STATUS
approved