英语翻译
ProblemDescription
LittlePetyalikesnumbersalot.Hefoundthatnumber123in
base16consistsoftwodigits:thefirstis7andthesecondis11.Sothesum
ofdigitsof123inbase16isequalto18.
Nowhewonderswhatisanaverage
valueofsumofdigitsofthenumberAwritteninallbasesfrom2to
A-1.
Notethatallcomputationsshouldbedoneinbase10.Youshouldfind
theresultasanirreduciblefraction,writteninbase10.
Input
InputcontainsoneintegernumberA(3
邮箱: 联系方式: