[go: up one dir, main page]

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!)
A073491 Numbers having no prime gaps in their factorization. 91

%I #26 Oct 02 2015 22:08:20

%S 1,2,3,4,5,6,7,8,9,11,12,13,15,16,17,18,19,23,24,25,27,29,30,31,32,35,

%T 36,37,41,43,45,47,48,49,53,54,59,60,61,64,67,71,72,73,75,77,79,81,83,

%U 89,90,96,97,101,103,105,107,108,109,113,120,121,125,127,128,131,135

%N Numbers having no prime gaps in their factorization.

%C A073490(a(n)) = 0; subsequences are: A000040, A000961, A006094, A002110, A000142, A073485.

%C A137721(n) = number of terms not greater than n; A137794(a(n))=1; complement of A073492. - _Reinhard Zumkeller_, Feb 11 2008

%C Essentially the same as A066311. - _R. J. Mathar_, Sep 23 2008

%C The Heinz numbers of the partitions that have no gaps. The Heinz number of a partition p = [p_1, p_2, ..., p_r] is defined as Product_{j=1..r} (p_j-th prime) (concept used by _Alois P. Heinz_ in A215366 as an "encoding" of a partition). Example: (i) 18 (= 2*3*3) is in the sequence because it is the Heinz number of the partition [1,2,2]; (ii) 10 (= 2*5) is not in the sequence because it is the Heinz number of the partition [1,3]. - _Emeric Deutsch_, Oct 02 2015

%H T. D. Noe, <a href="/A073491/b073491.txt">Table of n, a(n) for n = 1..1000</a>

%e 360 is a term, as 360 = 2*2*2*3*3*5 with consecutive prime factors.

%t ok[n_] := (p = FactorInteger[n][[All, 1]]; PrimePi[Last@p] - PrimePi[First@p] == Length[p] - 1); Select[Range[135], ok] (* _Jean-François Alcover_, Apr 29 2011 *)

%t npgQ[n_]:=Module[{f=Transpose[FactorInteger[n]][[1]]},f==Prime[Range[ PrimePi[ f[[1]]], PrimePi[f[[-1]]]]]]; Join[{1},Select[Range[2,200],npgQ]] (* _Harvey P. Dale_, Apr 12 2013 *)

%o (Haskell)

%o a073491 n = a073491_list !! (n-1)

%o a073491_list = filter ((== 0) . a073490) [1..]

%o -- _Reinhard Zumkeller_, Dec 20 2013

%o (PARI) is(n)=my(f=factor(n)[,1]); for(i=2,#f,if(precprime(f[i]-1)>f[i-1], return(0))); 1 \\ _Charles R Greathouse IV_, Apr 28 2015

%Y Cf. A137791, A137792, A137793, A137895.

%K nonn,nice

%O 1,2

%A _Reinhard Zumkeller_, Aug 03 2002

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 August 29 11:15 EDT 2024. Contains 375512 sequences. (Running on oeis4.)