OFFSET
1,2
COMMENTS
First differs from A179239 at n = 83; a(83) = 120 and A179239(83) = 122. This sequence is a supersequence of A179239.
If there is a zero digit, then we do not consider the cyclic shift which begins with the zero digit.
The number 0 should also be in this list. The initial digit of any term must be its smallest nonzero digit. - M. F. Hasler, Oct 18 2019
LINKS
David A. Corneth, Table of n, a(n) for n = 1..10000
MATHEMATICA
Select[Range@ 120, Function[d, First@ Sort@ Map[FromDigits, DeleteCases[ NestList[RotateLeft, d, Length@ d - 1], _?(First@ # == 0 &)]] == #]@ IntegerDigits@ # &] (* Michael De Vlieger, May 27 2017 *)
PROG
(PARI) is(n) = my(d=digits(n), v=vector(#d), no=n, nn=n, l=List(n)); for(i=2, #d, no = nn\10; no = no+(nn-no*10)*10^(#d-1); if(#digits(no)==#d, listput(l, no)); nn=no); listsort(l); n==l[1]
is(n) = {my(d = digits(n), dd = concat(d, d)); for(i=2, #d, c=vector(#d, j, dd[i+j-1]); if(fromdigits(c) < n, if(c[1]!=0, return(0)))); 1}
(PARI) is_A287478(n, D=digits(n))={!for(i=2, #D, ((D[i]<D[1] && D[i])|| (D[i]==D[1]&&[1, 10^(i-1)]*divrem(n, 10^(#D-i+1))<n))&& return)} \\ M. F. Hasler, Oct 18 2019
CROSSREFS
KEYWORD
nonn,base
AUTHOR
David A. Corneth, May 25 2017
STATUS
approved