Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A153639
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A153639 Evilness of triangular numbers. +0
1
1, 0, 1, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1 (list; graph; listen)
OFFSET

0,1

COMMENT

The evilness of a number is 1 if the number is evil and 0 otherwise. The number is evil if it has an even number of ones in its binary expansion.

MATHEMATICA

od[n_] := Mod[Count[IntegerDigits[n, 2], 1], 2] Table[1 - od[n (n + 1)/2], {n, 0, 128}]

CROSSREFS

A000217 Triangular numbers. A001969 Evil numbers.

Sequence in context: A105594 A091949 A039984 this_sequence A103582 A129565 A121967

Adjacent sequences: A153636 A153637 A153638 this_sequence A153640 A153641 A153642

KEYWORD

nonn

AUTHOR

Tanya Khovanova (tanyakh(AT)yahoo.com), Dec 29 2008

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified December 4 15:11 EST 2009. Contains 170347 sequences.


AT&T Labs Research