_==0 "exec" "gawk" "-f" "$0" function f(m, t,r,_) { t=2017%m;r=2017%m for(_=1;_<2*2017;_++) r=(r*t)%m return (t+r)%m } {print f($0)}