A179897 a(n) = (n^(2*n+1) + 1) / (n+1).
1, 1, 11, 547, 52429, 8138021, 1865813431, 593445188743, 250199979298361, 135085171767299209, 90909090909090909091, 74619186937936447687211, 73381705110822317661638341, 85180949465178001182799643437, 115244915978498073437814463065839, 179766618030828831251710653305053711
Offset: 0
Examples
For n = 2, a(2) = 11 which is the arithmetic mean of {1/2, 1/2, 2^5} = 33 / 3 = 11. The geometric mean is 8^(1/3) = 2, i.e. both are integral.
Links
- Andrew Howroyd, Table of n, a(n) for n = 0..100
- Google Groups, Integer-valued arithmetic and geometric means of sequences with non-integer numbers
Crossrefs
Programs
-
PARI
a(n) = (n^(2*n + 1) + 1)/(n + 1) \\ Andrew Howroyd, May 03 2023
-
Python
[(n**(2*n+1)+1)//(n+1) for n in range(1,11)]
Formula
a(n) = Sum_{i=0..2*n} (-n)^i.
Extensions
Edited, a(0)=1 prepended and more terms from Andrew Howroyd, May 03 2023
Comments