Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A128708
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A128708 Let j(n) be the Jacobsthal function, A048669. Then a(n) is the number of times that the gap j(n) appears between consecutive numbers <= n+1 and coprime to n. +0
2
1, 1, 1, 2, 1, 1, 1, 4, 3, 1, 1, 2, 1, 1, 2, 8, 1, 3, 1, 2, 2, 1, 1, 4, 5, 1, 9, 2, 1, 2, 1, 16, 2, 1, 2, 6, 1, 1, 2, 4, 1, 2, 1, 2, 6, 1, 1, 8, 7, 5, 2, 2, 1, 9, 2, 4, 2, 1, 1, 4, 1, 1, 6, 32, 2, 2, 1, 2, 2, 2, 1, 12, 1, 1, 10, 2, 2, 2, 1, 8, 27, 1, 1, 4, 2, 1, 2, 4, 1, 6, 2, 2, 2, 1, 2, 16, 1, 7, 6, 10 (list; graph; listen)
OFFSET

1,4

COMMENT

Differs from A087653 starting at n=35. For prime n and e>0, a(n^e)=n^(e-1). The closely-related sequence A128707 satisfies the inequality a(n)*A128707(n) <= n-1, with equality for prime n. If m is the squarefree kernal of n (A007947), then a(n)/a(m) = n/m.

LINKS

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

EXAMPLE

The numbers coprime to 15 are 1,2,4,7,8,11,13,14,16,17,19,22,... Observe that the differences are periodic: 1,2,3,1,3,2,1,2,1,2,3,... The maximum value is 3, which occurs twice in the first period. Hence a(15)=2.

MATHEMATICA

JacobsthalCount[n_] := Module[{g, d, mx}, g=Select[Range[n+1], GCD[n, # ]==1&]; d=Rest[g]-Most[g]; mx=Max@@d; Count[d, mx]]; Table[JacobsthalCount[n], {n, 100}]

CROSSREFS

Adjacent sequences: A128705 A128706 A128707 this_sequence A128709 A128710 A128711

Sequence in context: A000190 A003557 A073752 this_sequence A087653 A140274 A095231

KEYWORD

nonn

AUTHOR

T. D. Noe (noe(AT)sspectra.com), Mar 24 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 October 7 14:39 EDT 2008. Contains 144666 sequences.


AT&T Labs Research