Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A004443
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A004443 Nimsum n + 2. +0
4
2, 3, 0, 1, 6, 7, 4, 5, 10, 11, 8, 9, 14, 15, 12, 13, 18, 19, 16, 17, 22, 23, 20, 21, 26, 27, 24, 25, 30, 31, 28, 29, 34, 35, 32, 33, 38, 39, 36, 37, 42, 43, 40, 41, 46, 47, 44, 45, 50, 51, 48, 49, 54, 55, 52, 53, 58, 59 (list; graph; listen)
OFFSET

0,1

REFERENCES

E. R. Berlekamp, J. H. Conway and R. K. Guy, Winning Ways, Academic Press, NY, 2 vols., 1982, see p. 60.

J. H. Conway, On Numbers and Games. Academic Press, NY, 1976, pp. 51-53.

LINKS

Index entries for sequences related to Nim-sums

FORMULA

G.f.: [2-x-2x^2+3x^3]/[(1-x)^2(1+x^2)]. - R. Stephan, Apr 24 2004

The sequences 'Nimsum n + m' seem to have the general o.g.f. p(x)/q(x) with p, q polynomials and q(x) = (1-x)^2*prod[k=0..inf, 1+x^(2^e(k))], with sum[k=0..inf, 2^e(k)] = m. - R. Stephan, Apr 24 2004

a(n) = n + 2(-1)^[n/2] - Mitchell Harris, Jan 10 2005

MAPLE

nimsum := proc(a, b) local t1, t2, t3, t4, l; t1 := convert(a+2^200, base, 2); t2 := convert(b+2^200, base, 2); t3 := evalm(t1+t2); map(x->x mod 2, t3); t4 := convert(evalm(%), list); l := convert(t4, base, 2, 10); sum(l[k]*10^(k-1), k=1..nops(l)); end;

CROSSREFS

Cf. A003987, A004442.

Sequence in context: A128888 A163575 A163465 this_sequence A008290 A059066 A059067

Adjacent sequences: A004440 A004441 A004442 this_sequence A004444 A004445 A004446

KEYWORD

nonn

AUTHOR

N. J. A. Sloane (njas(AT)research.att.com).

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 November 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research