login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A136575 A triangular sequence using Stan Wagon's LegendrePhi[a,b] function. 0
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; refs; listen; history; internal format)
OFFSET

1,4

COMMENTS

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 * A193592 A077592 A194005

Adjacent sequences:  A136572 A136573 A136574 * A136576 A136577 A136578

KEYWORD

nonn,uned,tabl

AUTHOR

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

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 14 18:01 EST 2012. Contains 205659 sequences.