|
|
A126288
|
|
a(1) = 2, a(n) = n * LargestPrimeFactor(n+1) / LargestPrimeFactor(n).
|
|
5
|
|
|
2, 3, 2, 10, 3, 14, 2, 12, 15, 22, 3, 52, 7, 10, 6, 136, 3, 114, 5, 28, 33, 46, 3, 40, 65, 6, 63, 116, 5, 186, 2, 176, 51, 14, 15, 444, 19, 26, 15, 328, 7, 258, 11, 20, 207, 94, 3, 112, 35, 170, 39, 212, 3, 198, 35, 152, 87, 118, 5, 732, 31, 14, 18, 416, 55, 402, 17, 92, 21, 710
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
FORMULA
|
|
|
EXAMPLE
|
a(6) = 6 * LargestPrimeFactor(7) / LargestPrimeFactor(6) = 6 * 7 / 3 = 14
|
|
MATHEMATICA
|
a[1] := 2; a[n_] := n*FactorInteger[n + 1][[-1, 1]]/FactorInteger[n][[-1, 1]]; Table[a[n], {n, 70}] (* Ivan Neretin, May 20 2015 *)
|
|
PROG
|
(PARI) gpf(n) = vecmax(factor(n)[, 1]);
a(n) = if (n==1, 2, n*gpf(n+1)/gpf(n)); \\ Michel Marcus, Sep 08 2020
|
|
CROSSREFS
|
|
|
KEYWORD
|
easy,nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|