login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A100574 If n = product{p|n, p=prime} p^b(p,n), where each b(p,n) is a positive integer and the product is over distinct prime divisors of n, a(n) = difference between the maximum p^b(p,n) and minimum p^b(p,n). 2
0, 0, 0, 0, 0, 1, 0, 0, 0, 3, 0, 1, 0, 5, 2, 0, 0, 7, 0, 1, 4, 9, 0, 5, 0, 11, 0, 3, 0, 3, 0, 0, 8, 15, 2, 5, 0, 17, 10, 3, 0, 5, 0, 7, 4, 21, 0, 13, 0, 23, 14, 9, 0, 25, 6, 1, 16, 27, 0, 2, 0, 29, 2, 0, 8, 9, 0, 13, 20, 5, 0, 1, 0, 35, 22, 15, 4, 11, 0, 11, 0, 39, 0, 4, 12, 41, 26, 3, 0, 7, 6, 19, 28 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,10
COMMENTS
a(n)=0 iff n a prime or a power of a prime. - Robert G. Wilson v, Jan 10 2005
LINKS
FORMULA
a(n) = A034699(n) - A034684(n). - Antti Karttunen, Aug 06 2018
EXAMPLE
For 24 = 2^3 *3, 2^3 and 3 are separated by 5, so a(30) = 5.
MATHEMATICA
pf[n_] := Block[{pb = Flatten[ Table[ #[[1]]^#[[2]], {1}] & /@ FactorInteger[n]]}, Max[pb] - Min[pb]]; Table[ pf[n], {n, 2, 100}] (* Robert G. Wilson v, Jan 10 2005 *)
PROG
(PARI) A100574(n) = if(1==n, 0, my(f=factor(n), v = vector(#f[, 1], i, f[i, 1]^f[i, 2])); vecmax(v)-vecmin(v)); \\ Antti Karttunen, Aug 06 2018
CROSSREFS
Sequence in context: A049087 A178921 A046665 * A342122 A056100 A141665
KEYWORD
nonn
AUTHOR
Leroy Quet, Jan 02 2005
EXTENSIONS
More terms from Robert G. Wilson v, Jan 10 2005
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 21 16:28 EDT 2024. Contains 374475 sequences. (Running on oeis4.)