Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A130872
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A130872 Number of ways to write 8n - 1 as a sum of 7 (not necessarily distinct) odd perfect squares. +0
1
1, 1, 1, 2, 2, 2, 4, 4, 3, 5, 5, 5, 7, 7, 6, 9, 10, 8, 11, 11, 10, 15, 14, 12, 16, 17, 15, 19, 19, 17, 22, 24, 20, 25, 27, 23, 30, 29, 26, 32, 34, 30, 36, 38, 33, 40, 43, 37, 44, 47, 41, 50, 52, 45, 53, 55, 50, 58, 62, 54, 63, 70, 59, 68, 71, 64, 75, 79, 70, 79, 85, 77, 85, 89, 81 (list; graph; listen)
OFFSET

1,4

COMMENT

Since all odd perfect squares are congruent to 1 mod 8, it is not possible to express any number congruent to 7 mod 8 as a sum of fewer than 7 odd perfect squares.

EXAMPLE

a(2) = 1 because 15 = 9 + 1 + 1 + 1 + 1 + 1 + 1 is the only such representation. a(4) = 2 because 31 = 25 + 1 + 1 + 1 + 1 + 1 + 1 = 9 + 9 + 9 + 1 + 1 + 1 + 1.

MAPLE

A130872recur := proc(n, jmin, N) local a, s ; if N =1 then if n mod 2 = 1 and issqr(n) and n>=jmin^2 then RETURN(1) ; else RETURN(0) ; fi ; else a := 0 ; for s from 2*floor(jmin/2)+1 to floor(sqrt(n)) by 2 do a := a+A130872recur(n-s^2, s, N-1) ; od ; RETURN(a) ; fi ; end: A130872 := proc(n) option remember: A130872recur(8*n-1, 1, 7) ; end: seq(A130872(n), n=1..100); - R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Aug 02 2007

CROSSREFS

Adjacent sequences: A130869 A130870 A130871 this_sequence A130873 A130874 A130875

Sequence in context: A130453 A070705 A101909 this_sequence A087627 A096491 A106160

KEYWORD

nonn

AUTHOR

Joel Lewis (jblewis(AT)post.harvard.edu), Jul 24 2007

EXTENSIONS

More terms from R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Aug 02 2007

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 October 6 12:54 EDT 2008. Contains 144667 sequences.


AT&T Labs Research