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!)
A297173 Smallest difference between indices of prime divisors of n, or 0 if n is a prime power. 3
0, 0, 0, 0, 0, 1, 0, 0, 0, 2, 0, 1, 0, 3, 1, 0, 0, 1, 0, 2, 2, 4, 0, 1, 0, 5, 0, 3, 0, 1, 0, 0, 3, 6, 1, 1, 0, 7, 4, 2, 0, 1, 0, 4, 1, 8, 0, 1, 0, 2, 5, 5, 0, 1, 2, 3, 6, 9, 0, 1, 0, 10, 2, 0, 3, 1, 0, 6, 7, 1, 0, 1, 0, 11, 1, 7, 1, 1, 0, 2, 0, 12, 0, 1, 4, 13, 8, 4, 0, 1, 2, 8, 9, 14, 5, 1, 0, 3, 3, 2, 0, 1, 0, 5, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,10
LINKS
FORMULA
a(A073491(n)) <= 1.
EXAMPLE
For n = 130 = 2*5*13 = prime(1)*prime(3)*prime(6), the smallest difference between indices is 3-1 = 2, thus a(130) = 2.
PROG
(PARI) A297173(n) = if(omega(n)<=1, 0, my(ps=factor(n)[, 1]); vecmin(vector((#ps)-1, i, primepi(ps[i+1])-primepi(ps[i]))));
CROSSREFS
Sequence in context: A124305 A349395 A087073 * A242411 A286470 A243055
KEYWORD
nonn
AUTHOR
Antti Karttunen, Mar 03 2018
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 April 19 10:38 EDT 2024. Contains 371791 sequences. (Running on oeis4.)