STATUS
reviewed
approved
reviewed
approved
proposed
reviewed
editing
proposed
Numbers n k for which A257679(nk) = 2.
<a href="/index/Fa#facbase">Index entries for sequences related to factorial base representation</a>.
q[n_] := Module[{k = n, m = 2, r, s = {}}, While[{k, r} = QuotientRemainder[k, m]; k != 0|| r != 0, AppendTo[s, r]; m++]; !MemberQ[s, 1] && MemberQ[s, 2]]; Select[Range[500], q] (* Amiram Eldar, Feb 14 2024 *)
nonn,base
approved
editing
reviewed
approved
proposed
reviewed
editing
proposed
def A(n, p=2): return n if n<p else A(int(n//p), , p+1)*10 + n%p
print ([n for n in range(1, 503) if a(n)==2] ) # Indranil Ghosh, Jun 19 2017
approved
editing