寻找重复周期 [英] Finding Recurring Cycle

查看:52
本文介绍了寻找重复周期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找任何算法来帮助我找到小数部分的重复周期
的1/n.

我已经搜索过Google,但是找不到答案.
请引导我阅读一篇有用的文章或任何对我有帮助的文章.

谢谢大家.

I am looking for any algorithm to help me find the recurring cycle in decimal fraction
of 1/n.

I have searched google but couldn''t find my answer.
Please guide me to an useful article or anything that can help me.

Thank you all.

推荐答案

在这里,看看以下内容:
Euler项目26:找到d <的值. 1000,其中1/d包含最长的重复周期 [ Project Euler#26 [
Here, have a look at these:
Project Euler 26: Find the value of d < 1000 for which 1/d contains the longest recurring cycle[^]
Project Euler #26[^]


这篇关于寻找重复周期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆