#Homework hw17 by George Spahn with(NumberTheory): #CheckMordell(N) verifies that τ(p)*τ(q)=τ(pq) for all primes p,q, between 2 and N CheckMordell:=proc(N) local rs,i,j,a : a:=5000: if N*N < a then: a:=N*N: fi: rs:=RseqFF(24, a): for i from 2 to N do for j from 2 to N do if i*j >= a then break: fi: if AreCoprime(i,j) then if rs[i]*rs[j]<> rs[i*j] then print("something went wrong"): fi: fi: od: od: print("all good"): end: #CheckDeligne(N) outputs the prime between 2 and N such that |tau(p)|/(2 p^11/2) # is as small as possible, followed by its valu CheckDeligne:=proc(N) local rs,a,j,bestp,bestv,v : a:=min(N,5000): rs:=RseqFF(24, a): bestp:=1: bestv:=1: for j from 1 to a do if isprime(j) then v := evalf(abs(rs[j])/(2*j^(11/2))): if v