A078137 Numbers which can be written as sum of squares>1.
4, 8, 9, 12, 13, 16, 17, 18, 20, 21, 22, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82
Offset: 1
Links
- Index entries for sequences related to sums of squares
- Eric Weisstein's World of Mathematics, Square Number.
- Index entries for linear recurrences with constant coefficients, signature (2,-1).
Crossrefs
Programs
-
Mathematica
Join[{4, 8, 9, 12, 13, 16, 17, 18, 20, 21, 22}, Range[24, 82]] (* Jean-François Alcover, Aug 01 2018 *)
-
PARI
a(n)=if(n>11,n+12,[4,8,9,12,13,16,17,18,20,21,22][n]) \\ Charles R Greathouse IV, Aug 21 2011
Formula
a(n)=n + 12 for n >= 12. - Hieronymus Fischer, Nov 11 2007
Extensions
Edited by N. J. A. Sloane, Oct 17 2009 at the suggestion of R. J. Mathar.
Comments