OFFSET
4,3
COMMENTS
Conjecture: if the definition is changed so that k runs through values 2, 3, ..., floor((n-2)/2) then, beginning with n=6, the sequence remains without changes. - Vladimir Shevelev, Apr 10 2011
From Vladimir Shevelev, Jan 21 2013: (Start)
Other conjectures:
1) Primes 5, 7, 13 are only primes p for which a(p) = 1;
2) Primes 11 and 19 are only primes p for which a(p) = 2;
3) Let n = m^2 and m be the least value of k for which the number of divisors d > 1 of n-k, such that k|(n-d), equals a(n). Then m is prime or even power of a prime. (End)
LINKS
Alois P. Heinz, Table of n, a(n) for n = 4..10004
FORMULA
lim sup_{n -> infinity} a(n) = infinity. Indeed, it is easy to show that a(2^(2^n+1)) >= 2^n. Moreover, for n>5, we have a(2^(2^n+1)) > 2^n. - Vladimir Shevelev, Apr 09 2011
MAPLE
with(numtheory):
a:= n-> max(seq(nops(select(x-> irem(x, k)=0,
[seq(n-d, d=divisors(n-k) minus{1})])), k=2..floor(sqrt(n)))):
seq(a(n), n=4..120); # Alois P. Heinz, Apr 04 2011
MATHEMATICA
a[n_] := Max @ Table[ Length @ Select[Table[n-d, {d, Divisors[n-k] // Rest} ], Mod[#, k] == 0&], {k, 2, Floor[Sqrt[n]]}]; Table[a[n], {n, 4, 120}] (* Jean-François Alcover, Feb 06 2016, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Shevelev, Apr 04 2011
STATUS
approved