A081324 Twice a square but not the sum of 2 distinct squares.
0, 2, 8, 18, 32, 72, 98, 128, 162, 242, 288, 392, 512, 648, 722, 882, 968, 1058, 1152, 1458, 1568, 1922, 2048, 2178, 2592, 2888, 3528, 3698, 3872, 4232, 4418, 4608, 4802, 5832, 6272, 6498, 6962, 7688, 7938, 8192, 8712, 8978, 9522, 10082, 10368, 11552
Offset: 1
Keywords
Links
- Evan M. Bailey, Table of n, a(n) for n = 1..20000 (first 115 terms from Reinhard Zumkeller, terms 116-1000 from Zak Seidov)
- Evan M. Bailey, a081324.cpp
Programs
-
Haskell
import Data.List (elemIndices) a081324 n = a081324_list !! (n-1) a081324_list = 0 : elemIndices 1 a063725_list -- Reinhard Zumkeller, Aug 17 2011
-
Maple
map(k -> 2*k^2, select(k -> andmap(t -> t[1] mod 4 <> 1, ifactors(k)[2]), [$0..100])); # Robert Israel, Jun 10 2016
-
Mathematica
Select[ Range[0, 12000], MatchQ[ PowersRepresentations[#, 2, 2], {{n_, n_}}] &] (* Jean-François Alcover, Jun 18 2013 *)
-
PARI
concat([0,2],apply(n->2*n^2, select(n->vecmin(factor(n)[, 1]%4)>1, vector(100,n,n+1)))) \\ Charles R Greathouse IV, Jun 18 2013
Formula
A063725(a(n)) = 1. [Reinhard Zumkeller, Aug 17 2011]
a(n) = 2*A004144(n-1)^2 for n > 1. - Charles R Greathouse IV, Jun 18 2013
Extensions
a(19)-a(45) from Donovan Johnson, Nov 15 2009
Offset corrected by Reinhard Zumkeller, Aug 17 2011
Comments