Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A010340
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A010340 Sum of terms in period of continued fraction for sqrt(n). +0
6
0, 2, 3, 0, 4, 6, 7, 5, 0, 6, 9, 8, 10, 10, 7, 0, 8, 12, 17, 10, 14, 18, 13, 9, 0, 10, 15, 18, 16, 12, 25, 13, 14, 16, 11, 0, 12, 18, 16, 15, 16, 14, 29, 20, 20, 34, 19, 13, 0, 14, 21, 26, 22, 26, 20, 16, 22, 20, 27, 18 (list; graph; listen)
OFFSET

1,2

COMMENT

The entry for a perfect square is 0.

LINKS

T. D. Noe, Table of n, a(n) for n=1..1000

MATHEMATICA

f[n_] := If[ IntegerQ[ Sqrt[n]], 0, Apply[ Plus, Last[ ContinuedFraction[ Sqrt[n]]]]]; Table[ f[n], {n, 1, 100} ]

CROSSREFS

Sequence in context: A100112 A091246 A133637 this_sequence A049275 A121598 A140326

Adjacent sequences: A010337 A010338 A010339 this_sequence A010341 A010342 A010343

KEYWORD

nonn,nice

AUTHOR

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

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 30 13:13 EST 2009. Contains 167758 sequences.


AT&T Labs Research