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!)
A302296 Positive numbers that can be written in exactly one way as i*j*k with i < j < 2*i. 2

%I #17 Apr 29 2019 04:10:17

%S 6,15,18,20,28,35,63,75,77,78,88,91,99,100,102,104,110,114,117,130,

%T 138,143,153,170,174,175,186,187,189,190,196,209,221,222,238,245,246,

%U 247,258,266,272,282,297,299,304,318,322,323,325,351,354,357,366,368,391,399,402,425,426,429,437,438

%N Positive numbers that can be written in exactly one way as i*j*k with i < j < 2*i.

%C Numbers n such that A301989(n)=1.

%H Charles R Greathouse IV, <a href="/A302296/b302296.txt">Table of n, a(n) for n = 1..10000</a>

%e a(5)=28 is in the sequence because 28 = 4*7*1 is the only way to write 28=i*j*k with i < j < 2*i.

%p N:= 1000: # to get all terms <= N

%p V:= Vector(N):

%p for i from 1 to isqrt(N-1) do

%p for j from i+1 to min(floor(N/i),2*i-1) do

%p for k from 1 to floor(N/(i*j)) do

%p n:= i*j*k;

%p V[n]:= V[n]+1;

%p od od od:

%p select(t -> V[t]=1, [$1..N]);

%t M = 1000;

%t V = Table[0, {M}];

%t For[i = 1, i <= Sqrt[M-1], i++,

%t For[j = i+1, j <= Min[Floor[M/i], 2i-1], j++,

%t For[k = 1, k <= Floor[M/(i j)], k++,

%t n = i j k;

%t V[[n]] = V[[n]]+1;

%t ]]];

%t Position[V, 1] // Flatten (* _Jean-François Alcover_, Apr 29 2019, after _Robert Israel_ *)

%o (PARI) list(lim)=my(v=List(),u=vectorsmall(lim\=1),t); for(i=1, sqrtint(lim), for(j=i+1,min(lim\i,2*i-1), t=i*j; forstep(n=t,lim,t, u[n]++))); for(i=1,#u, if(u[i]==1, listput(v,i))); Vec(v) \\ _Charles R Greathouse IV_, Apr 05 2018

%Y Cf. A301989, A302022.

%K nonn

%O 1,1

%A _Robert Israel_, Apr 04 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 22:17 EDT 2024. Contains 371964 sequences. (Running on oeis4.)