OFFSET
1,3
COMMENTS
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
MATHEMATICA
Table[FromDigits@ Map[If[OddQ[#], Boole[Mod[n, #] == 0], Boole[Mod[n - #/2, #] == 0]] &, Range@ Floor[(Sqrt[8 n + 1] - 1)/2]], {n, 39}] (* Michael De Vlieger, Sep 15 2021 *)
PROG
(PARI) t(n, k) = if (k % 2, (n % k) == 0, ((n - k/2) % k) == 0);
a(n) = fromdigits(vector(floor((sqrt(1+8*n)-1)/2), k, t(n, k)), 10); \\ Michel Marcus, Sep 12 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Omar E. Pol, Sep 12 2021
STATUS
approved