login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A213541 a(n) = n AND n^2, where AND is the bitwise AND operator. 7
0, 1, 0, 1, 0, 1, 4, 1, 0, 1, 0, 9, 0, 9, 4, 1, 0, 1, 0, 1, 16, 17, 4, 17, 0, 17, 0, 25, 16, 9, 4, 1, 0, 1, 0, 1, 0, 1, 36, 33, 0, 1, 32, 41, 0, 41, 4, 33, 0, 33, 0, 33, 16, 49, 36, 17, 0, 49, 32, 25, 16, 9, 4, 1, 0, 1, 0, 1, 0, 1, 4, 1, 64, 65, 64, 73, 0, 9, 68 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,7

COMMENTS

The graph of this sequence has the shape of a tilted Sierpinski triangle. - WG Zeist, Jan 15 2019

LINKS

Reinhard Zumkeller, Table of n, a(n) for n = 0..8192

MATHEMATICA

Table[BitAnd[n, n^2], {n, 0, 63}] (* Alonso del Arte, Jun 19 2012 *)

PROG

(Python)

for n in range(99):

    print n*n & n,

(Haskell)

import Data.Bits ((.&.))

a213541 n = n .&. n ^ 2  -- Reinhard Zumkeller, Apr 25 2013

(PARI) a(n) = bitand(n, n^2); \\ Michel Marcus, Jan 15 2019

CROSSREFS

Cf. A213370.

Cf. A000290.

Cf. A007745 (OR), A169810 (XOR), A002378.

Sequence in context: A291574 A094924 A056968 * A181435 A206774 A307850

Adjacent sequences:  A213538 A213539 A213540 * A213542 A213543 A213544

KEYWORD

nonn,base,easy,less,look

AUTHOR

Alex Ratushnyak, Jun 14 2012

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 3 01:39 EDT 2020. Contains 333195 sequences. (Running on oeis4.)