An exercise for the reader
An exercise for the reader
Take the following two large numbers:
- Apply the Euclidean algorithm to compute .
- Let denote the successive quotients obtained in . Determine .
- Let denote the set of printable ASCII characters and let be the function mapping each integer to the character with that code point. Evaluate the string .
Show solutionHide solution
(f=(p,q)=>q?String.fromCharCode(Number(p/q))+f(q,p%q):'')(
5213436955487338931744369n,72398891673349755598314n
)