Forgot password?
 Create new account
View 99|Reply 1

请教幂和形式的表达式,怎么将指数模一个数s?

[Copy link]

418

Threads

1628

Posts

110K

Credits

Credits
11891

Show all posts

abababa Posted at 2023-12-1 19:56:31 |Read mode
  1. Sum[z^k, {k, 0, 102}]
Copy the Code

如上代码,我现在知道$z^{13}=a$,然后我想把那个代码的结果化简,就是要把那些指数都做模13运算,最后得到的结果可以含a和z的幂,请教这个用Mathematica要怎么做?

418

Threads

1628

Posts

110K

Credits

Credits
11891

Show all posts

 Author| abababa Posted at 2023-12-1 20:04:41
会了,直接在指数上取模就行了:
  1. Sum[z^(Mod[k,13]),{k,0,102}]
Copy the Code

手机版Mobile version|Leisure Math Forum

2025-4-20 22:13 GMT+8

Powered by Discuz!

× Quick Reply To Top Return to the list