OFFSET
1,1
COMMENTS
The ratio for the first numbers is 1, 1, 2, 1, 5, 5, 5, 47, 39, 1, 2, 63, 43
a(202) > 5*10^13. - Hiroaki Yamanouchi, Aug 27 2015
LINKS
Hiroaki Yamanouchi, Table of n, a(n) for n = 1..201
EXAMPLE
The arithmetic derivatives of 1233, 1234, 1235 are 831, 619, 407 and (831 + 407) / 619 = 2.
MAPLE
for x from 2 do
if not isprime(x) then
print(x) ;
end if;
end if;
end do: # R. J. Mathar, Nov 11 2014
MATHEMATICA
f[n_] := If[Abs@ n < 2, 0, n Total[#2/#1 & @@@ FactorInteger@ Abs@ n]]; lim = 300000; Select[Rest@ Complement[Range@ lim, Prime@ Range@ PrimePi@ lim], IntegerQ[(f[# - 1] + f[# + 1])/f@ #] &] (* Michael De Vlieger, Aug 27 2015, after Michael Somos at A003415 *)
PROG
(PARI) der(n) = sum(i=1, #f=factor(n)~, n/f[1, i]*f[2, i]);
lista(nn) = forcomposite(n=2, nn, if (! ((der(n-1) + der(n+1)) % der(n)), print1(n, ", "))); \\ Michel Marcus, Aug 27 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Paolo P. Lava, Sep 03 2014
EXTENSIONS
Definition corrected by R. J. Mathar, Nov 11 2014
a(14)-a(27) from Hiroaki Yamanouchi, Aug 27 2015
STATUS
approved