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!)
A317397 Positive integers that have exactly seven representations of the form 1 + p1 * (1 + p2* ... * (1 + p_j)...), where [p1, ..., p_j] is a (possibly empty) list of distinct primes. 2

%I #4 Jul 27 2018 11:09:45

%S 1613,3321,3336,3368,3741,3914,3979,4082,4126,4219,4561,4777,4798,

%T 4824,4929,4936,4948,5083,5314,5371,5559,5656,5825,5877,5946,5986,

%U 6096,6109,6111,6291,6303,6376,6644,6651,6673,6700,6711,6786,6883,6886,6917,6920,7036

%N Positive integers that have exactly seven representations of the form 1 + p1 * (1 + p2* ... * (1 + p_j)...), where [p1, ..., p_j] is a (possibly empty) list of distinct primes.

%H Alois P. Heinz, <a href="/A317397/b317397.txt">Table of n, a(n) for n = 1..20000</a>

%F A317241(a(n)) = 7.

%p b:= proc(n, s) option remember; local p, r; if n=1 then 1 else r:=0;

%p for p in numtheory[factorset](n-1) minus s while r<8

%p do r:= r+b((n-1)/p, s union {p}) od; `if`(r<8, r, 8)

%p fi

%p end:

%p a:= proc(n) option remember; local k; for k from

%p `if`(n=1, 1, 1+a(n-1)) while b(k, {})<>7 do od; k

%p end:

%p seq(a(n), n=1..100);

%Y Column k=7 of A317390.

%Y Cf. A317241.

%K nonn

%O 1,1

%A _Alois P. Heinz_, Jul 27 2018

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 24 11:49 EDT 2024. Contains 371936 sequences. (Running on oeis4.)