login
A369183
a(n) = n - A329004(n).
0
0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 2, 3, 4, 5, 0, 1, 0, 1, 2, 3, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6
OFFSET
1,14
EXAMPLE
a(15) = 3 because the largest Ramanujan's largely composite number below 15 is 12, and 15-12=3.
MATHEMATICA
dmax = 0; nmax = 1; seq = {}; Do[If[(d = DivisorSigma[0, n]) >= dmax, dmax = d; nmax = n]; AppendTo[seq, n- nmax], {n, 1, 102}]; seq (* James C. McMahon, Jan 28 2024 *)
CROSSREFS
Sequence in context: A347728 A336206 A303534 * A030567 A049265 A010875
KEYWORD
nonn
AUTHOR
Zhicheng Wei, Jan 15 2024
STATUS
approved