Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A111426
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A111426 Difference between largest and smallest prime factor of the n-th composite number. +0
3
0, 1, 0, 0, 3, 1, 5, 2, 0, 1, 3, 4, 9, 1, 0, 11, 0, 5, 3, 0, 8, 15, 2, 1, 17, 10, 3, 5, 9, 2, 21, 1, 0, 3, 14, 11, 1, 6, 5, 16, 27, 3, 29, 4, 0, 8, 9, 15, 20, 5, 1, 35, 2, 17, 4, 11, 3, 0, 39, 5, 12, 41, 26, 9, 3, 6, 21, 28, 45, 14, 1, 5, 8, 3, 15, 11, 4, 51, 1, 9, 34, 5, 17, 18, 27, 10, 57, 10, 3, 0 (list; graph; listen)
OFFSET

1,5

COMMENT

a(n) = 0 iff the n-th composite number is a perfect power.

First occurrence of k or 0 if impossible: 2,8,5,12,7,38,0,21,13,26,16,61,0,35,22,40,25,84,0,49,31,156,0,111,0 ...,.

FORMULA

a(n) = A046665(A002808(n)). - R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Feb 19 2008

MATHEMATICA

Composite[n_] := FixedPoint[n + 1 + PrimePi[ # ] &, n]; f[n_] := Block[{a = First@Transpose@FactorInteger@n}, a[[ -1]] - a[[1]]]; f[n_] := Block[{a = First@Transpose@FactorInteger@n}, a[[ -1]] - a[[1]]] (* Robert G. Wilson v *)

CROSSREFS

Sequence in context: A112031 A046531 A083722 this_sequence A100576 A131032 A130323

Adjacent sequences: A111423 A111424 A111425 this_sequence A111427 A111428 A111429

KEYWORD

nonn

AUTHOR

Giovanni Teofilatto (g.teofilatto(AT)tiscalinet.it), Nov 13 2005

EXTENSIONS

More terms from Robert G. Wilson v (rgwv(at)rgwv.com), Nov 17 2005

page 1

Search completed in 0.002 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 July 23 17:35 EDT 2008. Contains 142285 sequences.


AT&T Labs Research