求满足2p*p+p+8=m*m-2m的所有素数p和正整数m
来源:学生作业帮 编辑:大师作文网作业帮 分类:综合作业 时间:2024/11/10 08:54:48
求满足2p*p+p+8=m*m-2m的所有素数p和正整数m
Private Sub Command1_Click()
For i = 1 To 2000
If Prime(Sum_Y(i)) = True And Prime(i) = False Then Print i
Next
End Sub
'求素数函数
Function Prime(ByVal n As Integer) As Boolean
For i = 2 To Int(Sqr(n))
If n Mod i = 0 Then Prime = False:Exit Function
Next
Prime = True
End Function
'求因子和
Function Sum_Y(ByVal n As Integer) As Integer
Sum_Y = 1
For i = 2 To n
If n Mod i = 0 Then Sum_Y = Sum_Y + i:Sum_Y (n Mod i)
Next
End Function
For i = 1 To 2000
If Prime(Sum_Y(i)) = True And Prime(i) = False Then Print i
Next
End Sub
'求素数函数
Function Prime(ByVal n As Integer) As Boolean
For i = 2 To Int(Sqr(n))
If n Mod i = 0 Then Prime = False:Exit Function
Next
Prime = True
End Function
'求因子和
Function Sum_Y(ByVal n As Integer) As Integer
Sum_Y = 1
For i = 2 To n
If n Mod i = 0 Then Sum_Y = Sum_Y + i:Sum_Y (n Mod i)
Next
End Function
求满足2p*p+p+8=m*m-2m的所有素数p和正整数m
若实数m,n,p满足m-n=8,mn+p^2+16=0,求m+n+p的值
证明:当n>1时,不存在奇素数p和正整数m使p^n+1=2^m;当n>2时,不存在奇素数p和正整数
已知m,n.p都是整数,且|m-n|^3+|p-m|^5=1,求|p-m|+|m-n|+2|n-p|的值
已知m、n、p满足|2m|+m=0,|n|=n,p|p|=1.化简:|n|-|m-p-1|+|p+n|-|2n+1|.
证明:m^p+n^p恒等于0(mod p),则m^p+n^p恒等于0(mod p^2),p为奇素数
一道初一代数化简题,已知m,n,p满足|2m|+n=0.|n|=n,p+|p|=1,化简|n|-|m-p-1|+|p+n
已知M={1,2,3,4,5,6,7,8,9},集合P满足:P是M的子集
求助:证明对任意素数p,存在正整数前n项和Sn及前m项和Sm(n,m为正整数),p=Sn/Sm
急求p乘以2+m-p的最大值,
1.有4个不同的正整数,m、n、p、q满足(7-m)(7-n)(7-p)(7-q)=4,则m+n+p+q=?
已知集合 M,P 满足 M∪P=M 则 P是M的真子集.为什么?