Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download

All published worksheets from http://sagenb.org

Views: 168703
Image: ubuntu2004
fibonacci(12)
144
for x in range(1,30): z = fibonacci(x)%4; print(x,z)
(1, 1) (2, 1) (3, 2) (4, 3) (5, 1) (6, 0) (7, 1) (8, 1) (9, 2) (10, 3) (11, 1) (12, 0) (13, 1) (14, 1) (15, 2) (16, 3) (17, 1) (18, 0) (19, 1) (20, 1) (21, 2) (22, 3) (23, 1) (24, 0) (25, 1) (26, 1) (27, 2) (28, 3) (29, 1)