Ruud H.G. van Tol on Thu, 30 Dec 2021 00:00:48 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: factor(x+1)



On 2021-12-29 22:59, Ruud H.G. van Tol wrote:

Some other examples:

? isprime(9781262575275081247+10)
1

? tofp23(9781262575275081247+10)
[0,
[ [1, 4],
[ [1, 1], [1, [1, [1, [1, [1, [2,
[ [1, 1], [1, [5, [1, [2,
[ [1, 1], [2,
[ [2, 1],
[ [1, 1],
[ [2, 1],
[ [2, 1], [6,
[ [3, 1], [2, [1, 2]
]]]]]]]]]]]]]]]]]]]]]]]

Check:
? fromfp23(tofp23(9781262575275081247+10))
9781262575275081257

- - - - - -

? tofp23(27)
[-3]

? fromfp23([0, [2,[3,0]]])
27


? factor(fromfp23([0,[59,-37]])+1)
[2  59]
[3 -37]

-- Ruud