OFFSET
1,1
COMMENTS
See Problem 4 of RMO 2007 (Regional Mathematical Olympiad-India).
There are exactly 1405 such numbers from 111111, 111122,... to ..., 555544, 555555.
LINKS
Nathaniel Johnston, Table of n, a(n) for n = 1..1405 (full sequence)
|nSan|ty, RMO 2007 problem
MAPLE
A171725:={}: for n from 9331 to 46655 do d:=convert(n, base, 6): for k from 0 to 5 do cordig:=true: if((k=0 and numboccur(k, d)>0) or (k>0 and numboccur(k, d)=1))then cordig:=false:break: fi: od: if(cordig)then A171725 := A171725 union {op(convert(d, base, 10, 10^nops(d)))}: fi: od: op(sort(convert(A171725, list))); # Nathaniel Johnston, Jun 24 2011
MATHEMATICA
cc=0; re=Reap[Do[dc=DigitCount[n]; If[Take[dc, {6, 10}]=={0, 0, 0, 0, 0}&&FreeQ[Take[dc, 5], 1], cc++; Sow[n]], {n, 111111, 555555}]][[2, 1]]; cc
CROSSREFS
KEYWORD
base,fini,full,nonn
AUTHOR
Zak Seidov, Dec 16 2009
STATUS
approved