in reply to checking a set of numbers for consistency mod p
But my intuition says (examples for [ 2, [1, 0, 5, 0, 1]] )
HTH!
PS: Hey, number theory is off-topic!!! ;-)
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
°) regarding sieves, every partial sequence is the combination of all former repeated p-1 times, just the last entry is incremented
for p=2
<0> <1> <0 2> <0 1 0 3> <0 1 0 2 0 1 0 4> <0 1 0 2 0 1 0 3 0 1 0 2 0 1 0 5>
for p=3
<0> <0 1> <0 0 1 0 0 2> <0 0 1 0 0 1 0 0 2 0 0 1 0 0 1 0 0 3>
etc
You can easily precalculate the sieves if you have many sequences of a max length like m=32. You'll just calculate the sieve up to m.
Any bigger max entry will just take the place of the precaclclated max and the sieve will be correct.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: checking a set of numbers for consistency mod p
by hv (Prior) on Apr 09, 2022 at 20:38 UTC | |
by LanX (Saint) on Apr 09, 2022 at 20:46 UTC | |
by LanX (Saint) on Apr 10, 2022 at 11:24 UTC | |
by hv (Prior) on Apr 11, 2022 at 00:34 UTC | |
by LanX (Saint) on Apr 11, 2022 at 00:50 UTC | |
by hv (Prior) on Apr 11, 2022 at 18:50 UTC | |
| |
by LanX (Saint) on Apr 11, 2022 at 12:29 UTC | |
by LanX (Saint) on Apr 11, 2022 at 15:12 UTC |