Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A030640
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A030640 Discriminant of lattice A_n of determinant n+1. +0
2
1, 1, -3, -2, 5, 3, -7, -4, 9, 5, -11, -6, 13, 7, -15, -8, 17, 9, -19, -10, 21, 11, -23, -12, 25, 13, -27, -14, 29, 15, -31, -16, 33, 17, -35, -18, 37, 19, -39, -20, 41, 21, -43, -22, 45, 23, -47, -24, 49, 25, -51, -26, 53, 27, -55, -28, 57, 29, -59 (list; graph; listen)
OFFSET

0,3

REFERENCES

J. H. Conway, Sensual Quadratic Form, MAA, p. 4.

G. L. Watson, Integral Quadratic Forms, Camb., p. 2.

FORMULA

a(2n) = (-1)^n*(2*n+1), a(2n+1) = (-1)^n*(n+1). Or (apart from signs), a(n) = n, n odd; n/2, n even.

G.f.: (1+x-x^2)/(1+x^2)^2 - Len Smiley (smiley(AT)math.uaa.alaska.edu).

a(-2-n)=(-1)^n*a(n). - Michael Somos Jun 15 2005

PROGRAM

(PARI) a(n)=if(n==-1, 0, (-1)^(n\2)*(n+1)/gcd(n+1, 2)) /* Michael Somos Jun 15 2005 */

CROSSREFS

A026741 is unsigned version: a(n)=(-1)^[n/2]A026741(n+1).

Sequence in context: A124332 A165342 A076605 this_sequence A145051 A026741 A105658

Adjacent sequences: A030637 A030638 A030639 this_sequence A030641 A030642 A030643

KEYWORD

sign,easy,nice

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