OFFSET
1,2
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = 2*A130200(n). Multiplying by 2 doesn't change evilness. Hence evil oblong numbers are twice evil triangular numbers.
EXAMPLE
6 belongs to the sequence because binary expansion of 6 is 110 - contains an even number of ones.
MATHEMATICA
Select[Table[n(n + 1), {n, 0, 100}], EvenQ[Plus @@ IntegerDigits[ #, 2]] &]
PROG
(PARI) is(n)=n%2==0 && hammingweight(n)%2==0 && ispolygonal(n/2, 3) \\ Charles R Greathouse IV, Mar 16 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Tanya Khovanova, May 16 2007
EXTENSIONS
a(1) = 0 inserted and offset corrected by Amiram Eldar, Dec 09 2019
STATUS
approved