当前位置:网站首页>Du Jiao sieve
Du Jiao sieve
2022-07-25 06:36:00 【51CTO】
The core of Du Jiao sieve
purpose :
Used in less than linear time , Be more efficient Integrability function Of The prefix and
Algorithm :
To put it simply Divide and divide + Dirichlet convolution + Linear sieve
The formula :
The time complexity will be reduced to
Integrability function
If p and q Mutual quality and said f It's a product function
If for any p and q There are Then Cheng f Is a completely integrable function
Common product function
- Divisor function
, Express n The divisor of k The sum of powers , Be careful
And
Is different .
- About several number functions
Express n The approximate number of , Generally, it also forms d(n).
- Approximations and functions
, Express n And .
- Euler function
No greater than n Cut with n The number of positive integers of the Shanghai index , in addition
And for positive integers n>2 Come on
It's even .
- Mobius function
, In the penalty of Dirichlet convolution, it is reciprocal with the identity function .
For the square free factor number ,
Yes
, For numbers with square factors, there are
.
- Meta function
, Multiplicative unit of Dirichlet convolution , Complete integrability
- Identity function
Complete integrability
- Unit function
, Complete integrability
- power function
Complete integrability
Two important theorems :
Dirichlet convolution
And f(n) and g(n) Are all integral functions , that
Satisfy , Commutative law and associative law , Additive distribution rate
Mobius inversion :
Dujiao sieve
The formula :
Push a specific formula :
Here we are going to use properties :
enumeration
Make
边栏推荐
- Pic16f877xa instruction system (assembly language)
- 【C语言】指针和数组的深入理解(第一期)
- "Wei Lai Cup" 2022 Niuke summer multi school training camp 2 link with game glitch (SPFA finds positive and negative links)
- CRC8 CRC16 table lookup method
- 健康打卡每日提醒累了?那就让自动化帮你---HiFlow,应用连接自动化助手
- Seekbar属性参考
- Binary search tree (day 75)
- 【Jailhouse 文章】Base Architectures for virtual-physical computing(2018)
- VSCode 如何开启多个终端?如何横向显示?
- When the graduation season comes, are you ready? What are we going to do
猜你喜欢

【datawhale202207】强化学习:策略梯度和近端策略优化

C#控件开源库:MetroFramework的下载

R奇怪语法总结

Restrict Su command and sudo mechanism to promote nmap and console command netstat

ARM裸板调试之JTAG调试源码级调试

The LAF protocol elephant of defi 2.0 may be one of the few profit-making means in your bear market

SAP FICO section III BDC and ltmc import S4 financial account

GIS实战应用案例100篇(十七)-基于DEM制作三维地图

【C语言】指针和数组的深入理解(第一期)

Keil uvisin5 code auto completion or code Association
随机推荐
【C语言】指针和数组的深入理解(第一期)
Detailed annotation and analysis of start.s of uboot
C#读取倍福Beckhoff变量
JTAG debugging source level debugging of arm bare board debugging
MySQL queries the table name under the current database
MySQL index collation summary
Using JS to realize the linkage effect of form form's secondary menu
Keilc51 usage details (III)
Common mode inductance has been heard many times, but what principle do you really understand?
GIS实战应用案例100篇(十七)-基于DEM制作三维地图
C language -c51 compilation warning "* * * warning l1: unresolved external symbol" and extern
How to convert multi row data into multi column data in MySQL
What does PK, NN, Qu, B, UN, ZF, AI, G mean when creating tables in MySQL
【datawhale202207】强化学习:策略梯度和近端策略优化
Req.body in node.express is always undefind
DOM events
Some common interview questions about IO stream and string
Standard C language 6
When the graduation season comes, are you ready? What are we going to do
Health clock in daily reminder tired? Then let automation help you -- hiflow, application connection automation assistant