Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A122457
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A122457 a(1)=1, a(2)=1. a(n) = the sum of the two largest earlier terms which are both coprime to n. +0
2
1, 1, 2, 2, 4, 2, 6, 2, 6, 2, 12, 2, 18, 2, 6, 2, 30, 2, 48, 2, 6, 2, 78, 2, 126, 2, 6, 2, 204, 2, 330, 2, 6, 2, 282, 2, 612, 2, 6, 2, 942, 2, 1554, 2, 6, 2, 2496, 2, 3438, 2, 6, 2, 5934, 2, 9372, 2, 6, 2, 15306, 2, 24678, 2, 6, 2, 39984, 2, 64662, 2, 6, 2, 104646, 2, 169308, 2, 6 (list; graph; listen)
OFFSET

1,3

LINKS

Leroy Quet, Home Page (listed in lieu of email address)

EXAMPLE

a(1)=1, a(2)=1, a(3)=2, a(4)=2, a(5)=4, a(6)=2, a(8)=2 are the terms which are coprime to 9 and which occur among {a(1),a(2)...a(8)}. 2 and 4 are the two largest of these terms, so a(9) = 2 + 4 = 6.

MATHEMATICA

f[s_] := Append[s, Plus @@ Take[Sort[Select[s, GCD[ #, Length[s] + 1] == 1 &]], -2]]; Nest[f, {1, 1}, 74] (*Chandler*)

CROSSREFS

Cf. A122456.

Sequence in context: A082174 A074369 A073348 this_sequence A139770 A140635 A002322

Adjacent sequences: A122454 A122455 A122456 this_sequence A122458 A122459 A122460

KEYWORD

nonn

AUTHOR

Leroy Quet Sep 07 2006

EXTENSIONS

Corrected and extended by Ray Chandler (rayjchandler(AT)sbcglobal.net) and Robert G. Wilson v, Sep 11 2006

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