login

Revision History for A359727

(Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing entries 1-10 | older changes
Beattific 'primes': numbers n > 1 not equal to floor(k*m*phi) or floor(k*m*phi^2) for any smaller element k in this sequence and any positive integer m.
(history; published version)
#23 by Michael De Vlieger at Sat Jan 28 13:44:56 EST 2023
STATUS

reviewed

approved

#22 by Andrey Zabolotskiy at Sat Jan 28 13:41:42 EST 2023
STATUS

proposed

reviewed

#21 by Andrey Zabolotskiy at Sat Jan 28 13:41:40 EST 2023
STATUS

editing

proposed

#20 by Andrey Zabolotskiy at Sat Jan 28 13:41:12 EST 2023
NAME

Beattific 'primes': numbers n > 1 not equal to floor(k*m*phi) or floor(k*m*phi^2) for any smaller element k in this sequence and any positive integer m.

STATUS

proposed

editing

Discussion
Sat Jan 28
13:41
Andrey Zabolotskiy: I think this is correct, thanks.
#19 by Andrey Zabolotskiy at Thu Jan 26 09:46:01 EST 2023
STATUS

editing

proposed

Discussion
Thu Jan 26
09:48
Andrey Zabolotskiy: Erm, it still appears to me that the name contradicts the comment... I would like to get confirmation from James that the name is correct (or not).
16:32
James Propp: I'm sorry if I'm being dense, but I don't understand the sense in which the name "Beattific 'prime'" contradicts the comment "Given r = (1+sqrt(5))/2 and s = r^2, we sieve the set {2,3,4,...}, where each time we discover a new "prime" p, we sieve out the numbers floor(p*r), floor(2p*r), floor(3p*r), ... and floor(p*s), floor(2p*s), floor(3p*s), ... It appears that significantly more than half the terms are even." (Maybe the problem you're referring to is the fact that these numbers aren't primes in the ordinary sense? It seems to me that putting the word in quotation marks, as you or somebody else did, addresses that issue.)
18:21
Andrey Zabolotskiy: I mean the name in its current form, as proposed by Charles: "Beattific 'primes': numbers n > 1 not equal to floor(k*phi) or floor(k*phi^2) for any smaller element k in this sequence." (Which is better than just "Beattific 'primes'" since it contains the definition, but the question is whether the definition is correct.)
Sat Jan 28
09:18
James Propp: Thanks for catching this issue! I believe Charles' definition is incorrect; when I implement it, I get the sequence A182636. I believe the following is a correct definition of my sequence: "numbers n > 1 not equal to floor(k*m*phi) or floor(k*m*phi^2) for any smaller element k in this sequence and any positive integer m." Can someone check that I'm not fooling myself?
#18 by Andrey Zabolotskiy at Thu Jan 26 09:45:54 EST 2023
NAME

Beattific 'primes': numbers n > 1 not divisible equal to floor(k*phi) or floor(k*phi^2) for any smaller element k in this sequence.

MATHEMATICA

BPbp[limit_] := (*Find all the Beattific primes up to limit*)

STATUS

proposed

editing

#17 by Andrey Zabolotskiy at Thu Jan 26 09:44:11 EST 2023
STATUS

editing

proposed

#16 by Andrey Zabolotskiy at Thu Jan 26 09:42:25 EST 2023
MATHEMATICA

BP[lim_limit_] := (* Find all the Beattific primes up to lim limit*)

Module[{r = (1 + Sqrt[5])/2, s = r^2, sieve, = ConstantArray[1, limit = lim, n, k, ]},

Do[If[sieve[[n]] == 1,

list}, sieve = [[Table[1, Floor[k n r], {k, (limit + 1)/(n r)}]]] = 0;

For[n = 2, n <= limit, n++,

If[ sieve[[Table[Floor[k n] r r] == , {k, (limit + 1, )/(n r r)}]]] = 0],

For[k = 1, k n r < limit, k++, sieve[[Floor[k n r]]] = 0];

For[k = 1, k n r r < limit, k++, sieve[[Floor[k n r r]]] = 0]]];

list = {};

For[n = 2, n <= limit, n++,

If[sieve[[n]] == 1, list = Append[list, n]]]; Return[list]]

{n, 2, limit}];

Rest@Flatten@Position[sieve, 1]];

STATUS

reviewed

editing

Discussion
Thu Jan 26
09:44
Andrey Zabolotskiy: 200 appeared because Mathematica had a bug. I fixed it and rewritten to be more idiomatic (the program looked more like a C or Python program rewritten in Mathematica).
#15 by Charles R Greathouse IV at Thu Jan 26 09:39:29 EST 2023
STATUS

proposed

reviewed

Discussion
Thu Jan 26
09:48
Alois P. Heinz: ok, thanks ...
#14 by Charles R Greathouse IV at Thu Jan 26 09:39:27 EST 2023
STATUS

editing

proposed