OFFSET
1,2
COMMENTS
We define the superfactorial base as a variant of the factorial base where place values are superfactorials (A000178) instead of factorials (A000142). - Rémy Sigrist, Mar 20 2018
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
28 written in superfactorial base is 220, the sum of digits is thus 4 and 4 divides 28, so 28 is included in the sequence.
MAPLE
A076428 := proc(n) local i, j, m, t, t1; t := NULL; for j from 1 to n do m := j; i := 2; t1 := 0; while m>0 do t1 := t1 + (m mod i!); m := floor(m/i!); i := i+1; od; if j mod t1 = 0 then t := t, j fi; od; t; end;
MATHEMATICA
max = 4; bases = Range[max, 1, -1]!; nmax = Times @@ bases - 1; sumdig[n_] := Plus @@ IntegerDigits[n, MixedRadix[bases]]; Select[Range[nmax], Divisible[#, sumdig[#]] &] (* Amiram Eldar, Sep 07 2020 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Floor van Lamoen, Oct 10 2002
EXTENSIONS
Definition corrected by Rémy Sigrist, Mar 20 2018
STATUS
approved