Sharedsupport / 2018.sagewsOpen in CoCalc
Author: William A. Stein
License: GNU General Public License v3.0
Description: Examples for support purposes.

Be Prepared for 2018!

factor(2018)
2 * 1009
1009%4
1
sum_of_k_squares(2,2018)
(13, 43)
13^2 + 43^2
2018
for a in [1..100]: for b in [1..100]: if a^2 + b^2 == 2018: print(a,b)
(13, 43) (43, 13)

132+43213^2 + 43^2