当前位置:网站首页>[learning notes] number theory thinking problem
[learning notes] number theory thinking problem
2022-07-21 05:06:00 【Ants looking up at the starry sky】
In fact, it's the question that broke
Circular decimals
- Ingenious number theory problem
- Let the length of the loop section be l l l, The length of the non circulating part is c c c
- because b b b It's the result of the score reduction
- So there is b ∣ 1 0 l + c − 1 0 c b|10^{l+c}-10^c b∣10l+c−10c
- Write in congruence form 1 0 l + c ≡ 1 0 c ( m o d b ) 10^{l+c}\equiv 10^c\pmod b 10l+c≡10c(modb)
- If ( 10 , b ) = 1 (10,b)=1 (10,b)=1
- that 1 0 l ≡ 1 ( m o d b ) 10^l\equiv 1\pmod b 10l≡1(modb)
- that l = o r d b ( 10 ) l=ord_b(10) l=ordb(10)
- And there is no non cyclic part of the decimal
- If ( 10 , b ) ≠ 1 (10,b)\ne 1 (10,b)=1
- set up b = 2 k 2 5 k 5 b ′ b=2^{k_2}5^{k_5}b' b=2k25k5b′
- that 1 0 l ≡ 1 ( m o d b gcd ( b , 1 0 c ) ) 10^l\equiv 1\pmod {\frac{b}{\gcd(b,10^c)}} 10l≡1(modgcd(b,10c)b)
- Notice that two numbers that are not coprime have no order
- prove : hypothesis a b ≡ 1 ( m o d m ) a^b\equiv 1\pmod m ab≡1(modm), set up d = gcd ( a , m ) d=\gcd(a,m) d=gcd(a,m)
- that a b ≡ 1 ( m o d d ) a^b\equiv 1\pmod d ab≡1(modd)
- because a ∣ d a|d a∣d, So left congruence 0 0 0, Obviously not
- therefore 1 0 l ≡ 1 ( m o d b ′ ) 10^l\equiv 1\pmod {b'} 10l≡1(modb′)
- that l = o r d b ′ ( 10 ) l=ord_{b'}(10) l=ordb′(10)
- Obviously, the non circulating part c = max ( k 2 , k 5 ) c=\max(k_2,k_5) c=max(k2,k5)
- Of course , If b ′ = 1 b'=1 b′=1 Then the decimal has no cyclic section ( In other words, irrational numbers
边栏推荐
- Mysql database concurrency, locking problems (shared locks and exclusive locks)
- keras MNIST手寫數字數據集數字識別
- HCIP-7. LSA header of OSPF
- 9 suggestions for quickly improving programming ability
- 解锁高评分 | eBay 深耕用户体验,优化大屏幕设备应用
- [detailed tutorial] a thorough article on mongodb aggregation query
- Leaflet 加载超图发布的投影图层报错 Uncaught No projection definition for code XXXX
- Top ten best automated test tools in the world in 2022
- 原生threeJS入门
- 乙醇是什么?
猜你喜欢
Step number characteristic
二维卷积中文微博情感分类项目
threeJS中dat.gui的使用显示文件夹点击时候及调色器
Send a book at the end of the article | Douban 9.4 points, "Hello, world" originated from this book!
threejst物体匀速移动
Storage of integer and floating point numbers in memory
Renren code generator -- simplify your development
通过STM32 stlink utility工具对ST-LINK芯片信息进行读取和升级以及SWD烧录媒介
pango debug抓信号
原生threeJS入门
随机推荐
[FPGA tutorial case 31] communication case 1 - ask modulation signal generation based on FPGA
Hyperchain超块链史兴国接受36氪采访:客户合作咨询量都在翻倍
What are the six access database objects? What is the most important difference between access and excel?
What are the advantages of low code platforms over traditional IT development?
[detailed tutorial] a thorough article on mongodb aggregation query
Thirteen grammar learning of reflect
À propos des outils d'édition XML
【递归 & 分治】压缩变换(使用区间树和二分法,递归统计指定区间内数字种类)
尚医通项目总结
Kotlin学习之json数据解析
Threejst objects move at a constant speed
Isn't it too much to play Gobang in idea?
Three practical PivotTable operating skills in Excel, simple and efficient!
Popular explanation: the difference between IAAs, PAAS and SaaS
QQ Three Party login - pre environment and interaction
Testapi (node writes test interface without database, with basic data)
Mysql database concurrency, locking problems (shared locks and exclusive locks)
Unlock high scores | eBay deepens user experience and optimizes large screen device applications
Two dimensional convolution Chinese microblog emotion classification project
C language file operation management (Part 1)