OFFSET
1,1
COMMENTS
Numbers of terms in nonnegative integer sequences the sum of which is never a square.
The sum of a sequence of consecutive nonnegative integers starting with k is never a square for any k, if and only if the number of the terms in the sequence can be expressed as (2*m - 1) * 2^(2*n), m and n being any positive integers. (Proved by Alfred Vella, Jun 14 2005.)
Odious and evil terms alternate. - Vladimir Shevelev, Jun 22 2009
Even numbers whose binary representation ends in an even number of zeros. - Amiram Eldar, Jan 12 2021
From Antti Karttunen, Jan 28 2023: (Start)
Numbers k for which the parity of k is equal to that of A048675(k).
A multiplicative semigroup; if m and n are in the sequence then so is m*n. (End)
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = 6*n + O(log n). - Charles R Greathouse IV, Nov 03 2016 [Corrected by Amiram Eldar, Jan 12 2021]
EXAMPLE
a( 1, 1 ) = 4, a( 2, 1) = 12, etc.
For a( 1, 1 ): the sum of 4 consecutive nonnegative integers (4k+6, if the first term is k) is never a square.
MATHEMATICA
Select[2 * Range[200], EvenQ @ IntegerExponent[#, 2] &] (* Amiram Eldar, Jan 12 2021 *)
PROG
(PARI) is(n)=my(e=valuation(n, 2)); e>1 && e%2==0 \\ Charles R Greathouse IV, Nov 03 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Andras Erszegi (erszegi.andras(AT)chello.hu), May 30 2005
EXTENSIONS
Entry revised by N. J. A. Sloane, Jun 26 2005
More terms from Amiram Eldar, Jan 12 2021
STATUS
approved