Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A125749
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A125749 a(n) is the smallest positive integer such that (sum{1<=k<=a(n), GCD(t(k),n)=1} t(k)) is >= n, where t(k) is the k-th positive integer which is coprime to n. +0
3
1, 2, 2, 2, 3, 2, 4, 3, 4, 3, 5, 3, 5, 4, 5, 4, 6, 4, 6, 4, 6, 5, 7, 4, 7, 6, 6, 5, 8, 4, 8, 6, 7, 6, 8, 5, 9, 7, 8, 6, 9, 5, 9, 7, 7, 7, 10, 6, 10, 7, 9, 8, 10, 6, 10, 7, 9, 8, 11, 6, 11, 8, 9, 8, 11, 7, 12, 9, 10, 7, 12, 7, 12, 9, 9, 9, 12, 7, 13, 8, 11, 10, 13, 7, 12, 10, 11, 9, 13, 7, 13, 10, 12 (list; graph; listen)
OFFSET

1,2

EXAMPLE

The positive integers which are coprime to 12 are 1,5,7,11,13,... Now 1+5 = 6, which is less than 12; but 1+5+7 is 13, which is >= 12. 7 is the 3rd positive integer which is coprime to 12, so a(12) = 3.

MATHEMATICA

f[n_] := Block[{k = 1, l}, While[l = Select[Range[k], GCD[ #, n] == 1 &]; Plus @@ l < n, k++ ]; Length[l]]; Table[f[n], {n, 100}] (*Chandler*)

CROSSREFS

Cf. A125748, A117893.

Adjacent sequences: A125746 A125747 A125748 this_sequence A125750 A125751 A125752

Sequence in context: A036013 A126336 A134446 this_sequence A014085 A029210 A035433

KEYWORD

nonn

AUTHOR

Leroy Quet (qq-quet(AT)mindspring.com), Dec 06 2006

EXTENSIONS

Extended by Ray Chandler (rayjchandler(AT)sbcglobal.net), Dec 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 October 7 14:39 EDT 2008. Contains 144666 sequences.


AT&T Labs Research