Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A123953
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A123953 a(0)=1. a(n) = number of terms among terms a(0) through a(n-1) of the sequence which are coprime to n(n+1)/2. +0
2
1, 1, 2, 2, 2, 5, 6, 3, 3, 5, 8, 4, 4, 13, 9, 3, 9, 11, 12, 9, 4, 12, 21, 6, 4, 22, 14, 6, 12, 14, 15, 14, 5, 17, 25, 5, 10, 37, 23, 6, 14, 22, 23, 20, 7, 21, 44, 14, 13, 33, 25, 13, 24, 35, 23, 16, 17, 39, 58, 13, 14, 61, 35, 20, 20, 26, 43, 33, 19, 27, 48, 25, 26, 72, 37, 17, 32, 35 (list; graph; listen)
OFFSET

0,3

LINKS

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

EXAMPLE

Among terms a(0),a(1),...a(8) there are 5 terms coprime to 9*10/2 = 45. (These terms are a(0)=1, a(1)=1, a(2)=2, a(3)=2 and a(4)=2.) So a(9) = 5.

MATHEMATICA

f[l_List] := Block[{n = Length[l]}, Append[l, Length @ Select[l, GCD[n*(n + 1)/2, # ] == 1 &]]]; Nest[f, {1}, 80] (*Chandler*)

a[0] = 1; a[n_] := a[n] = Count[ GCD[ Table[ a[i], {i, 0, n - 1}], n(n + 1)/2], 1]; Table[ a[n], {n, 0, 77}] (* Robert G. Wilson v *)

CROSSREFS

Cf. A119989.

Sequence in context: A096403 A073819 A066835 this_sequence A097006 A033306 A136347

Adjacent sequences: A123950 A123951 A123952 this_sequence A123954 A123955 A123956

KEYWORD

nonn

AUTHOR

Leroy Quet Nov 22 2006

EXTENSIONS

Extended by Ray Chandler (rayjchandler(AT)sbcglobal.net) and Robert G. Wilson v (rgwv(at)rgwv.com), Nov 23 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