Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A136575
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A136575 A triangular sequence using Stan Wagon's LegendrePhi[a,b] function. +0
1
0, 1, 1, 2, 1, 1, 3, 2, 1, 1, 4, 2, 1, 1, 1, 5, 3, 2, 1, 1, 1, 6, 3, 2, 1, 1, 1, 1, 7, 4, 3, 2, 1, 1, 1, 1, 8, 4, 3, 2, 1, 1, 1, 1, 1, 9, 5, 3, 2, 1, 1, 1, 1, 1, 1, 10, 5, 3, 2, 1, 1, 1, 1, 1, 1, 1 (list; table; graph; listen)
OFFSET

1,4

COMMENT

Row sums are:

{0, 2, 4, 7, 9, 13, 15, 20, 22, 25, 27}

Wagon quote:

"Define the Legendre function a to be the number of positive integers m that are less than or equal to n and are not divisible by any of the first a primes a. "

REFERENCES

Bressoud & Wagon, A Course in Computational Number Theory, Springer/Key, 2000 (with a Mathematica package for computational number theory); http://www.msri.org/publications/ln/msri/2000/introant/wagon/mma/wagon_notes.nb.

FORMULA

t(n,m)=LengendrePhi[n,m] defined in Mathematica as: LegendrePhi[n_, 0] := n; LegendrePhi[n_, a_] := ((LegendrePhi[n, a] = LegendrePhi[n, a - 1] - LegendrePhi[Floor[n/Prime[a]], a - 1])

EXAMPLE

{0},

{1, 1},

{2, 1, 1},

{3, 2, 1, 1},

{4, 2, 1, 1, 1},

{5, 3, 2, 1, 1, 1},

{6, 3, 2, 1, 1, 1, 1},

{7, 4, 3, 2, 1, 1, 1, 1},

{8, 4, 3, 2, 1, 1, 1, 1, 1},

{9, 5, 3, 2, 1, 1, 1, 1, 1, 1},

{10, 5, 3, 2, 1, 1, 1, 1, 1, 1, 1}

MATHEMATICA

LegendrePhi[n_, 0] := n; LegendrePhi[n_, a_] := ((LegendrePhi[n, a] = LegendrePhi[n, a - 1] - LegendrePhi[Floor[n/Prime[a]], a - 1]); a = Table[Table[LegendrePhi[n, m], {m, 0, n}], {n, 0, 10}]; Flatten[a]

CROSSREFS

Sequence in context: A164953 A136622 A025474 this_sequence A077592 A055794 A092905

Adjacent sequences: A136572 A136573 A136574 this_sequence A136576 A136577 A136578

KEYWORD

nonn,uned,tabl

AUTHOR

Roger L. Bagula (rlbagulatftn(AT)yahoo.com), Mar 26 2008

page 1

Search completed in 0.004 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