Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A127614
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A127614 a(n) = numerator of the continued fraction which has the positive integers which are <= n and are coprime to n as its terms. +0
3
1, 1, 3, 4, 43, 6, 1393, 151, 3980, 265, 7489051, 479, 1004933203, 28065, 1567857, 3025576, 44811373131073, 107069, 13807296146243251, 12541924, 85867066404, 1867630045, 2448516766522879398193, 47040432, 85536466996746340043 (list; graph; listen)
OFFSET

1,3

COMMENT

The positive integers coprime to n and <= n can be written either from largest to smallest or from smallest to largest, and the numerator of the continued fraction would remain unchanged.

EXAMPLE

The positive integers coprime to 8 and <= 8 are 1,3,5,7. So a(8) is the numerator of 1 +1/(3 +1/(5 +1/7)) = 151/115. a(8) is also the numerator of 7 +1/(5 +1/(3 +1/1)) = 151/21.

MATHEMATICA

f[n_] := Select[Range[n], GCD[ #, n] == 1 &]; g[n_] := Numerator[FromContinuedFraction[f[n]]]; Table[g[n], {n, 26}] (*Chandler*)

CROSSREFS

Cf. A127615, A127616.

Sequence in context: A012472 A012876 A032837 this_sequence A041055 A032838 A013336

Adjacent sequences: A127611 A127612 A127613 this_sequence A127615 A127616 A127617

KEYWORD

frac,nonn

AUTHOR

Leroy Quet (qq-quet(AT)mindspring.com), Jan 19 2007

EXTENSIONS

Extended by Ray Chandler (rayjchandler(AT)sbcglobal.net), Jan 22 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 September 6 09:40 EDT 2008. Contains 143480 sequences.


AT&T Labs Research