2^x mod n = 1

Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 15810    Accepted Submission(s): 4914

Problem Description
Give a number n, find the minimum x(x>0) that satisfies 2^x mod n = 1.
 
Input
One positive integer on each line, the value of n.
 
Output
If the minimum x exists, print a line with 2^x mod n = 1.

Print 2^? mod n = 1 otherwise.

You should replace x and n with specific numbers.

 
Sample Input
2
5
 
Sample Output
2^? mod 2 = 1 2^4 mod 5 = 1
这里提供两种方法来做,暴力或者欧拉函数。但是暴力我感觉的话数据量大一点可能就AC不了了。
暴力做法(大一的时候写的):
#include<math.h>
#include<iostream>
#include<stdio.h>
#include<algorithm>
using namespace std;
int n=;
int quick_pow_mod(int a,int b,int c)
{
int ans=;
while(b>)
{
if(b&)
ans=(a*ans)%c;
b=b>>;
a=(a*a)%c;
}
return ans;
} int main()
{
int n;
while(scanf("%d",&n)!=EOF)
{
int flag=,t,k;
if(n%== || n==) printf("2^? mod %d = 1\n",n); //n=1!!!!!!!!
else
{
for(int i=; ; i++)
{
k=quick_pow_mod(,i,n);
if(k==)
{
t=i;
flag=;
break;
}
}
if(flag)
printf("2^? mod %d = 1\n",n);
else printf("2^%d mod %d = 1\n",t,n);
} }
}

欧拉函数:

用φ(n)表示不大于n且与n互素的数的个数,该函数以欧拉的名字命名,称为欧拉函数。

      如果n是一个素数,即n = p,那么φ(n) = p-1(所有小于n的都互素);
      如果n是素数的k次幂,即n = p^k,那么φ(n) = p^k - p^(k-1) (除了p的倍数其它都互素);
      如果m和n互素,那么φ(mn) = φ(m)φ(n)(可以利用上面两个性质进行推导)。
      将n分解成如图二-4-1的素因子形式,那么利用上面的定理可得φ(n)
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAtAAAACYCAIAAABCoUnjAAASNklEQVR4nO3dPZLcKhuG4d6RA0/USzlVE02VtuHYgat6CWcJTkbRl3gPjqajsxK+oPUvJIHghRd0X5E9Py0QNDyNkOZmAAAAhN1yFwAAANSP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q3ZvB7sf7LqR+kTESMmImMMNyIi70dv173JS8/WmnOO9+wzqrUCgHNO9rtXKeU8/VyiEMLj9FtrJyH3UfqlFEaccxa7c84x5Z4FADCCwUL7KPRJ5Zyn9C/Z4D8KAJ6lv0qKz9k+ESEiIrbWOPTzXa21+Lsg4J593L8qJkzpE9H3pJZn6ccYOT4ftaTPMd1aa4xhmuzXzjlETCn1++m9F6OTmYUQ+jjQR6Feda3V3Kb0Y4y9j5dSQgha61orRyrnHBGVUowxSqlj5kBEAPDeH6211hpCcM4ZY4wxR/qIKKMjIo8rM1mZxZx+CIHTeq11WKdEmwHH+XmqlMIecxSvdqrV26b0Qwi9iRFRCEEpFUKotTICay0A1Fr5Df2UvPdiKyklpZRsAGeynsBAHxF5FRwb+HGhJGHjuJB57pKVp5QGCqttPE931ybDKX3n3DAKU5BL733vf8YYMf9SygCInZ5/a617V5hGHnZ0SXgDJaXUNCFN6HvvpZ49Lmma7tpHAJneYn+f3mofpjTV6pEpfWvt4F4DfQAYajChj4jDCwGAW44bM6XfT3iIga213pN+a580fQwWYxweO+f4smihVf+V7b9MX1iLZD+GMNIW9JVSYrLe+2Emj9q+VA6lFKb/F36hfCTut2foD4Ge38b2y5lvyBADffYPudRaD6yH/fvVPlzzi7ia5EXyqfX45FXiCDvV6hGGNZhFX3Ww2HrkEgD6cDwk9j50sAkKLy6Z+BMLn3WHsN4PzTm2/6o47E2vSasxhreac/03nF+eEiJaa7lk7AutWuvxyM3dhJpSitMY89Va90bNFTYAcJnUD8rFq9aas6sxpvezEILMhCva3o1ijKvvIm/139aFn5IuVF/FDHor+iml1alio06Kt7ei31pbnel3afgoMOjd6H9RTfyyzv90ejf6/5Zu+jt109+pm/5O3fR36qa/Uzf9nfoBDN+7krIAbekAAAAASUVORK5CYII=" alt="" />
但是我们求出的欧拉函数并不是这个方程最小的解。它的解有可能在它的因子中,这个是可以证明的。这里就不详细证明了。分解因子然后得到最小的解。
#include <stdio.h>
#include <string.h>
#include <algorithm>
#include <iostream>
#include <math.h>
using namespace std;
typedef long long LL;
const int N = ;
bool p[N];
int euler[N];
int e[N];
void getEuler()
{
memset(euler,,sizeof(euler));
euler[] = ;
for(int i = ; i <= N; i++)
if(!euler[i])
for(int j = i; j <= N; j+= i)
{
if(!euler[j])
euler[j] = j;
euler[j] = euler[j]/i*(i-);
}
}
int pow_mod(int a,int b,int mod)
{
int ans = ;
while(b)
{
if(b&) ans = ans*a%mod;
a=a*a%mod;
b>>=;
}
return ans;
}
int main()
{
getEuler();
int n;
while(~scanf("%d",&n))
{
if(n%&&n!=)
{
int m = euler[n];
memset(e,,sizeof(e));
int id=;
e[id++] = m;
for(int i=; i*i<=m; i++) ///分解出m所有的因子
{
if(m%i==)
{
if(i*i==m) e[id++] =i;
else
{
e[id++]=i;
e[id++]=m/i;
}
}
}
sort(e,e+id);
int ans = m;
for(int i=; i<id; i++)
{
if(pow_mod(,e[i],n)==)
{
ans = e[i];
break;
}
}
printf("2^%d mod %d = 1\n",ans,n);
}
else printf("2^? mod %d = 1\n",n);
}
return ;
}

hdu 1395(欧拉函数)的更多相关文章

  1. hdu 6390 欧拉函数+容斥(莫比乌斯函数) GuGuFishtion

    http://acm.hdu.edu.cn/showproblem.php?pid=6390 题意:求一个式子 题解:看题解,写代码 第一行就看不出来,后面的sigma公式也不会化简.mobius也不 ...

  2. hdu 2654(欧拉函数)

    Become A Hero Time Limit: 15000/5000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)To ...

  3. hdu 2824(欧拉函数)

    The Euler function Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Other ...

  4. hdu 3307(欧拉函数+好题)

    Description has only two Sentences Time Limit: 3000/1000 MS (Java/Others)    Memory Limit: 65536/327 ...

  5. 找新朋友 HDU - 1286 欧拉函数模板题

    题意: 求出来区间[1,n]内与n互质的数的数量 题解: 典型的欧拉函数应用,具体见这里:Relatives POJ - 2407 欧拉函数 代码: 1 #include<stdio.h> ...

  6. hdu 2824 欧拉函数 O(nlogn) 和O(n)

    裸题 O(nlogn): #include <cstdio> #include <iostream> #include <algorithm> using name ...

  7. hdu 4983 欧拉函数

    http://acm.hdu.edu.cn/showproblem.php?pid=4983 求有多少对元组满足题目中的公式. 对于K=1的情况,等价于gcd(A, N) * gcd(B, N) = ...

  8. hdu 4002 欧拉函数 2011大连赛区网络赛B

    题意:求1-n内最大的x/phi(x) 通式:φ(x)=x*(1-1/p1)*(1-1/p2)*(1-1/p3)*(1-1/p4)…..(1-1/pn),其中p1, p2……pn为x的所有质因数,x是 ...

  9. hdu 1787(欧拉函数)

    GCD Again Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total S ...

随机推荐

  1. centos7安装phpstudy

    操作系统:CentOS 7 x86_64 SSH登录工具:FinalSHell 2.9.7 一.安装phpstudy 1.下载完整版: wget -c http://lamp.phpstudy.net ...

  2. Android系统中标准Intent的使用

    Android系统用于Activity的标准Intent 1.根据联系人ID显示联系人信息= Intent intent=new Intent(); intent.setAction(Intent.A ...

  3. ubuntu 压缩 解压 命令大全

    ubuntu下文件压缩/解压缩命令总结 http://blog.csdn.net/luo86106/article/details/6946255 .gz 解压1:gunzip FileName.gz ...

  4. Java总结 - List实现类ArrayList&LinkedList

    本文是根据源码进行学习的,如果我有什么理解不对的地方请多指正,谢谢您 上面基本就是List集合类的类图关系了,图中省略掉了比如Cloneable等标记接口,那么List分别具体的主要实现类有:Arra ...

  5. astyle 使用说明 —— 集成到开发平台中

    转自:https://www.cnblogs.com/jiangxinnju/p/4908575.html 欢迎关注我的社交账号: 博客园地址: http://www.cnblogs.com/jian ...

  6. 关于欧几里德算法(gcd)的证明

    求a,b的最大公约数我们经常用欧几里得算法解决,也称辗转相除法, 代码很简短, int gcd(int a,int b){ return (b==0)?a:gcd(b,a%b); } 但其中的道理却很 ...

  7. Java并发模型框架

    构建Java并发模型框架 Java的多线程特性为构建高性能的应用提供了极大的方便,但是也带来了不少的麻烦.线程间同步.数据一致性等烦琐的问题需要细心的考虑,一不小心就会出现一些微妙的,难以调试的错误. ...

  8. Sql日期时间格式转换(转 子夜.)

    sql server2000中使用convert来取得datetime数据类型样式(全) 日期数据格式的处理,两个示例: CONVERT(varchar(16), 时间一, 20) 结果:2007-0 ...

  9. day20 Django Models 操作,多表,多对多

    1 Django models 获取数据的三种方式: 实践: viwes def business(request): v1 = models.Business.objects.all() v2 = ...

  10. 测试环境docker化(一)—基于ndp部署模式的docker基础镜像制作

    本文来自网易云社区 作者:孙婷婷 背景 我所在测试项目组目前的测试环境只有一套,在项目版本迭代过程中,开发或产品偶尔会在测试环境进行数据校验,QA人数在不断增加,各个人员在负责不同模块工作时也会产生脏 ...