Ask Your Question

S00501's profile - activity

2024-02-09 07:05:03 +0200 received badge  Taxonomist
2013-09-18 11:15:41 +0200 asked a question A simple function evaluation in Sage with index numbers

Hello, i'm a newbie to Sage and I am trying to evaluate a simple function in Sage:

a = m0 * r + m1 * r^2 + m2 * r^3 + ... + mn * r^n+1 + s mod p

where m = 454356542435979283475928437 r = 483754 s = 342534

And mn is the n-th index of the number m. So m0 = 4, m1 = 5, m2 = 4, m3 = 3, etc.

I am not quite sure how to code and evaluate this in Sage since i'm rather new to the language. Especially how to code the n-th index of a number seems really hard to do.

Can someone help me with this? Thanks in advance!