OFFSET
2,2
COMMENTS
LINKS
Paolo P. Lava, Table of n, a(n) for n = 2..1000
FORMULA
a(4n) = 4n^2 + n, 4n+1 <= a(4n+1) <= (8n^2 + 6n + 1)/3, 4n+3 <= a(4n+2) <= (8n^2 + 10n + 3)/3, a(4n+3) = 4n^2 + 7n + 3. - Charles R Greathouse IV, Jun 10 2013
EXAMPLE
For n = 28 we have n*(n+1)/2 = 406 and its proper divisors are 1, 2, 7, 14, 29, 58, 203. Hence a(28) = 203.
MAPLE
MATHEMATICA
Table[Divisors[(n(n+1))/2][[-2]], {n, 2, 60}] (* Harvey P. Dale, Apr 09 2021 *)
PROG
(PARI) a(n)=if(n==2, return(1)); my(p=factor(n/gcd(n, 2))[1, 1], q=factor((n+1)/gcd(n+1, 2))[1, 1]); binomial(n+1, 2)/min(p, q) \\ Charles R Greathouse IV, Jun 10 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paolo P. Lava, Jun 10 2013
STATUS
approved