Dear sci.math, sci.crypt, and japan.sci.math,
Please excuse the English.
The next step [1] in my Cryptohack adventure consists of using the Ton- elli-Shanks algorithm.-a As it happens this is not provided by Python,
nor SymPy, nor NumPy to my knowledge.-a It is also hard to find actual
books on this subject, written by humans, that are not copy pasta from Wikipedia.-a I present
https://www.betterworldbooks.com/product/detail/tonelli-shanks- algorithm-9786131148453
as a book I'm not interested in, plus it's out of stock anyway.
Now, as I'm currently trying to curb my tsundoku, I'm looking primarily
for freely available mathematical P.D.Fs., or alternatively, H.T.M.L. articles written by humans for humans.-a I have deliberately /not/ read Wikipedia yet, as I have mostly found it confusing in the past.
To add insult to injury, my physical library of mathematical, and cryptographical books is not extensive enough to have this algorithm mentioned in an index.
So, before I give up and try to read Wikipedia, or -- to my chagrin --
ask an L.L.M., is there a wizard of sci.math, sci.crypt, or japan.sci.
math who knows a human written source on this subject that is /not/ --
again -- a copy pasta of Wikipedia?
Best wishes, and happy mathematics!
[1] In the previous step, after implementing my own Jacobi Symbol, I
cheated, and used the built-in pow( a, b, p ) function for fast modular arithmetic, instead of implementing my own.
Dear sci.math, sci.crypt, and japan.sci.math,
Please excuse the English.
The next step [1] in my Cryptohack adventure consists of using the Ton- elli-Shanks algorithm.-a As it happens this is not provided by Python,
nor SymPy, nor NumPy to my knowledge.-a It is also hard to find actual
books on this subject, written by humans, that are not copy pasta from Wikipedia.-a I present
https://www.betterworldbooks.com/product/detail/tonelli-shanks-algorithm-9786131148453
as a book I'm not interested in, plus it's out of stock anyway.
Now, as I'm currently trying to curb my tsundoku, I'm looking primarily
On 9/22/2026 12:03 AM, Johann 'Myrkraverk' Oskarsson wrote:
Dear sci.math, sci.crypt, and japan.sci.math,
Please excuse the English.
The next step [1] in my Cryptohack adventure consists of using the Ton-
elli-Shanks algorithm.-a As it happens this is not provided by Python,
nor SymPy, nor NumPy to my knowledge.-a It is also hard to find actual
books on this subject, written by humans, that are not copy pasta from
Wikipedia.-a I present
https://www.betterworldbooks.com/product/detail/tonelli-shanks-
algorithm-9786131148453
as a book I'm not interested in, plus it's out of stock anyway.
Now, as I'm currently trying to curb my tsundoku, I'm looking primarily
for freely available mathematical P.D.Fs., or alternatively, H.T.M.L.
articles written by humans for humans.-a I have deliberately /not/ read
Wikipedia yet, as I have mostly found it confusing in the past.
To add insult to injury, my physical library of mathematical, and
cryptographical books is not extensive enough to have this algorithm
mentioned in an index.
So, before I give up and try to read Wikipedia, or -- to my chagrin --
ask an L.L.M., is there a wizard of sci.math, sci.crypt, or japan.sci.
math who knows a human written source on this subject that is /not/ --
again -- a copy pasta of Wikipedia?
Best wishes, and happy mathematics!
[1] In the previous step, after implementing my own Jacobi Symbol, I
cheated, and used the built-in pow( a, b, p ) function for fast modular
arithmetic, instead of implementing my own.
Ok, so /after/ posting this, I came across lecture notes about a diff-
erent algorithm that does the same thing with matrices.-a I'll leave that
one for later.-a It's Perelta's Algorithm, and the lecture notes are at
-a https://gyarmatikati.web.elte.hu/targyak/computational/szamiteng10.pdf
which references
https://archive.org/details/HistoryOfTheTheoryOfNumbersI/page/215/mode/1up
for the original Tonelli algorithm.-a For the curious, Perelta's is at
-a https://empslocal.ex.ac.uk/people/staff/rjchapma/courses/nt13/ peralta.pdf
as well.
Chances are, these are also listed as references in Wikipedia, but I
haven't bothered to try to read it yet.-a I have personal experience of finding erroneous information due to over-reliance on outdated scien-
tific resources, so if any of you know better references, please share.
Best wishes, and happy Perelta's Algorithm!
Johann 'Myrkraverk' Oskarsson wrote:
Dear sci.math, sci.crypt, and japan.sci.math,
Please excuse the English.
The next step [1] in my Cryptohack adventure consists of using the Ton-
elli-Shanks algorithm.-a As it happens this is not provided by Python,
nor SymPy, nor NumPy to my knowledge.-a It is also hard to find actual
books on this subject, written by humans, that are not copy pasta from
Wikipedia.-a I present
https://www.betterworldbooks.com/product/detail/tonelli-shanks-
algorithm-9786131148453
as a book I'm not interested in, plus it's out of stock anyway.
Now, as I'm currently trying to curb my tsundoku, I'm looking primarily
I had a tsundoku situation but then the place did a bedbug crackdown.
They swiped all my books I'd built up (it was what kept me sane during confinement), maybe $800 worth of books, and about two weeks later told
me they weren't giving them back. That's the last time I built up books
I wouldn't read. Now I'm particular about what I pick up. I was reading yarros' 4th wing & got sick of it & secretly slipped it onto the library shelves. Someone left Baldacci's The Whole Truth around and I picked it
up, got tired of it and secretly slipped it onto the library shelves.
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 74 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 30:11:29 |
| Calls: | 1,195 |
| Files: | 1,354 |
| D/L today: |
16 files (19,622K bytes) |
| Messages: | 294,275 |