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!)
A260360 The absolute difference between the largest prime factors of prime(n)-1 and prime(n+1)-1. 1
0, 1, 2, 2, 1, 1, 8, 4, 2, 2, 2, 2, 16, 10, 16, 24, 6, 4, 4, 10, 28, 30, 8, 2, 12, 36, 50, 4, 0, 6, 4, 6, 14, 32, 8, 10, 80, 40, 46, 84, 14, 16, 4, 4, 4, 30, 76, 94, 10, 12, 12, 0, 3, 129, 64, 62, 18, 16, 40, 26, 56, 14, 18, 66, 68, 4, 166, 144, 18, 168, 118, 30, 24, 184, 94, 86, 6, 12, 2, 12, 36, 40, 70, 56, 10 (list; graph; refs; listen; history; text; internal format)
OFFSET
2,3
COMMENTS
a(n)=0 if and only if n is in A105403.
It is an open question whether there are infinitely many zeros in this sequence. Are there infinitely many terms below some fixed upper bound?
LINKS
FORMULA
a(n) = abs(A023503(n+1) - A023503(n)). - Robert Israel, Aug 06 2015
EXAMPLE
n=4: The prime factors of prime(4)-1 are 2,3 and the prime factors of prime(5)-1 are 2,5. The largest are 3 and 5, so a(4)=2.
MAPLE
B:= [seq(max(numtheory:-factorset(ithprime(i)-1)), i=2..101)]:
seq(abs(B[n+1]-B[n]), n=1..99); # Robert Israel, Aug 06 2015
MATHEMATICA
Table[Abs[FactorInteger[Prime[n] - 1][[-1, 1]] - FactorInteger[Prime[n + 1] - 1][[-1, 1]]], {n, 2, 86}] (* Michael De Vlieger, Jul 24 2015 *)
Rest[Abs[Differences[Table[FactorInteger[p-1][[-1, 1]], {p, Prime[ Range[ 90]]}]]]] (* Harvey P. Dale, Aug 08 2021 *)
PROG
(PARI) gpf(n) = if(n>1, vecmax(factor(n)[, 1]), 1);
a(n) = gpf(prime(n)-1) - gpf(prime(n+1)-1); \\ Michel Marcus, Aug 05 2015
CROSSREFS
Sequence in context: A107876 A121554 A365077 * A011296 A176602 A322194
KEYWORD
nonn
AUTHOR
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 16 05:35 EDT 2024. Contains 371697 sequences. (Running on oeis4.)