OFFSET
1,2
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..13069
EXAMPLE
The factorial base representation (A007623) of 5 is "21", which contains exactly one 1, thus 5 is included in the sequence.
The f.b.r. of 23 is "321", with only one 1, thus 23 is included in the sequence.
The f.b.r. of 24 is "1000", with only one 1, thus 24 is included in the sequence.
MATHEMATICA
factBaseIntDs[n_] := Module[{m, i, len, dList, currDigit}, i = 1; While[n > i!, i++]; m = n; len = i; dList = Table[0, {len}]; Do[currDigit = 0; While[m >= j!, m = m - j!; currDigit++]; dList[[len - j + 1]] = currDigit, {j, i, 1, -1}]; If[dList[[1]] == 0, dList = Drop[dList, 1]]; dList]; s = Table[FromDigits[factBaseIntDs[n]], {n, 210}]; {0}~Join~Flatten@ Position[s, x_ /; DigitCount[x][[1]] == 1] (* Michael De Vlieger, Apr 27 2015, after Alonso del Arte at A007623 *)
PROG
(Scheme, with Antti Karttunen's IntSeq-library)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Antti Karttunen, Apr 27 2015
STATUS
approved