OFFSET
1,2
COMMENTS
For m(n) = 3,5,11, and 181, the perfect numbers (A000396), 6, 28, 496, and 33550336 are produced, respectively. 3,5,11, and 181 are the numbers m(n) such that (m(n)^2+7) is a power of 2. cf A038198.
The unique primitive Pythagorean triple whose inradius T(n) and its long leg and hypotenuse are consecutive natural numbers is (2*T(n)+1, 2*T(n)*(T(n)+1), 2*T(n)*(T(n)+1)+1) and its semiperimeter is (T(n)+1)*(2*T(n)+1) where T(n) = A000217(n). - Miguel-Ángel Pérez García-Ortega, May 16 2025
REFERENCES
David M. Burton, Elementary Number Theory, McGraw-Hill (2011), 25.
LINKS
Index entries for linear recurrences with constant coefficients, signature (5,-10,10,-5,1).
FORMULA
From Stefano Spezia, Jul 25 2020: (Start)
O.g.f.: x*(1 + x + 8*x^2 + x^3 + x^4)/(1 - x)^5.
a(n) = (1 - n + n^2)*(2 - n + n^2)/2.
a(n) = 5*a(n-1) - 10*a(n-2) + 10*a(n-3) - 5*a(n-4) + a(n-5) for n > 5. (End)
EXAMPLE
m(2) = 2*2-1 = 3 and (3^2+3)*(3^2+7)/32 = 6, so 6 is in the sequence.
MATHEMATICA
Table[((n^2+3)*(n^2+7))/32, {n, 1, 100, 2}]
a=Table[(n(n+1))/2, {n, 0, 40}]; Apply[Join, Map[{(#+1)(2#+1)}&, a]] (* Miguel-Ángel Pérez García-Ortega, May 16 2025 *)
PROG
(PARI) a(n)=(1-n+n^2)*(2-n+n^2)/2 \\ Charles R Greathouse IV, Oct 21 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Jeff Brown, Jul 24 2020
STATUS
approved
