OFFSET
1,3
COMMENTS
A_n is a binary symmetric Hankel matrix.
Lim_{n->infinity} a(n)/n^2 = 0.
Proof: It can be seen from the formula that a(n) is bound from above by n*[number of perfect powers <= 2*n]. Powers of any particular number contribute no more than log_2(n) each, and there are no more than sqrt(2n) numbers that contribute anything at all, so a(n) <= n*log_2(n)*sqrt(2n), and a(n)/n^2 <= sqrt(2)*log_2(n)/sqrt(n), which goes to 0 at infinity. - Andrey Zabolotskiy, Oct 16 2017
Conjecture: The golden ratio/golden conjugate are eigenvalues of A_n if and only if n=6, 8 or 9. This has been verified up to n=500.
Conjecture: the sequence increases monotonically. - Robert G. Wilson v, Oct 09 2017
Where the parity of a(n) switches: 2, 4, 8, 16, 18, 32, 50, 64, 72, 98, 108, 128, 162, 200, 242, 256, 288, 338, 392, 450, 500, 512, 578, 648, 722, 800, 864, 882, 968, etc. Each number that is twice a square is present. - Robert G. Wilson v, Oct 09 2017
LINKS
Robert G. Wilson v, Table of n, a(n) for n = 1..10000
Mathematics StackExchange, A One Third Conjecture
FORMULA
a(n) ~ (2/3)*n^(3/2). - Robert G. Wilson v, Oct 10 2017
a(n) = Sum_{k=1..n} k*A075802(k+1) + Sum_{k=1..n-1} k*A075802(2*n-k+1). - Andrey Zabolotskiy, Oct 16 2017
a(n) = a(n-1) + 2*(i+n) is a perfect power for i=1..n, + 1 if 2n is a perfect power. - Robert G. Wilson v, Nov 23 2017
EXAMPLE
|0 0 1 0 0|
|0 1 0 0 0|
A_5 = |1 0 0 0 1| and so a(5) = 8.
|0 0 0 1 1|
|0 0 1 1 0|
MATHEMATICA
perfectPowerQ[n_] := n == 1 || GCD @@ FactorInteger[n][[All, 2]] > 1; f[n_] := Plus @@ Flatten@ Table[ Boole[ perfectPowerQ[i + j]], {i, n}, {j, n}]; Array[f, 60] (* Robert G. Wilson v, Oct 09 2017 *)
f[n_] := f[n] = f[n - 1] + 2 Plus @@ Flatten@ Table[ Boole[ perfectPowerQ[i + n]], {i, n - 1}] + If[ perfectPowerQ[2 n], 1, 0]; f[1] = 0; Array[f, 60] (* Robert G. Wilson v, Nov 23 2017 *)
PROG
(PARI) a(n) = sum(i=1, n, sum(j=1, n, ispower(i+j) != 0)); \\ Michel Marcus, Oct 09 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Anthony Hernandez, Oct 09 2017
EXTENSIONS
a(31) onward from Robert G. Wilson v, Oct 09 2017
STATUS
approved
