OFFSET
1,1
COMMENTS
REFERENCES
J.-M. De Koninck, Ces nombres qui nous fascinent, Entry 399, p. 89, Ellipses, Paris 2008.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..500
EXAMPLE
a(3) = 165 because the prime divisors of 165 are 3, 5, 11 =>
(3 + 3) | (165 + 3) = 168 = 6*28;
(5 + 3) | 168 = 8*21;
(11 + 3) | 168 = 14*12.
MAPLE
with(numtheory):for n from 1 to 45 do:i:=0:for k from 1 to 100000 while(i=0) do:x:=factorset(k):n1:=nops(x):y:=k+n: j:=0:for m from 1 to n1 do:if n1>=2 and irem(y, x[m]+n)=0 then j:=j+1:else fi:od:if j>2 then i:=1:printf(`%d, `, k):else fi:od:od:
MATHEMATICA
numd[n_, k_] := Module[{p=FactorInteger[k][[;; , 1]], c=0}, Do[If[Divisible[n+k, n+p[[i]]], c++], {i, 1, Length[p]}]; c]; a[n_]:=Module[{k=1}, While[numd[n, k] <= 2, k++]; k]; Array[a, 40] (* Amiram Eldar, Sep 09 2019 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Lagneau, Dec 13 2011
STATUS
approved