Search: a055023 -id:a055023
|
|
|
|
55, 105, 155, 203, 253, 355, 405, 455, 497, 595, 655, 689, 705, 737, 755, 791, 955, 979, 1005, 1027, 1055, 1081, 1221, 1255, 1305, 1355, 1379, 1555, 1605, 1655, 1673, 1703, 1711, 1751, 1855, 1905, 1955, 1967, 2065, 2155, 2189, 2205, 2255, 2261, 2329, 2455, 2505, 2555, 2755, 2805, 2849, 2855, 3055
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
Neither primes nor prime powers present?
|
|
LINKS
|
|
|
PROG
|
(PARI)
A055023(n) = (n/denominator((sum(m=1, n - 1, m^(n - 1)) + 1)/n)); \\ From A055023.
A060681(n) = (n-if(1==n, n, n/vecmin(factor(n)[, 1])));
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|
|
A055030
|
|
(Sum(m^(p-1),m=1..p-1)+1)/p as p runs through the primes.
|
|
+10
11
|
|
|
1, 2, 71, 9596, 1355849266, 1032458258547, 1653031004194447737, 3167496749732497119310, 22841077183004879532481321652, 1768861419039838982256898243427529138091, 10293527624511391856267274608237685758691696
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
It is conjectured that (Sum(m^(n-1),m=1..n-1)+1)/n is an integer iff n is 1 or a prime.
Always an integer from little Fermat theorem. Converse is conjectured to be true: if p | (1+1^(p-1)+2^(p-1)+3^(p-1)+...+(p-1)^(p-1)) and p > 1, then p is prime. That was checked by Giuga up to p <= 10^1000. [Benoit Cloitre, Jun 09 2002]
|
|
REFERENCES
|
R. K. Guy, Unsolved Problems in Number Theory, A17.
|
|
LINKS
|
|
|
FORMULA
|
|
|
MAPLE
|
p := ithprime(n) ;
add(m^(p-1), m=1..p-1) ;
(1+%)/p ;
end proc:
|
|
MATHEMATICA
|
Array[(Sum[m^(# - 1), {m, # - 1}] + 1)/# &@ Prime@ # &, 11] (* Michael De Vlieger, Nov 04 2017 *)
|
|
PROG
|
(PARI) for(n=1, 20, print1((1+sum(i=1, prime(n)-1, i^(prime(n)-1)))/prime(n), ", ")) /* Benoit Cloitre, Jun 09 2002*/
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|
|
A204187
|
|
a(n) = Sum_{m=1..n-1} m^(n-1) modulo n.
|
|
+10
10
|
|
|
0, 1, 2, 0, 4, 3, 6, 0, 6, 5, 10, 0, 12, 7, 10, 0, 16, 9, 18, 0, 14, 11, 22, 0, 20, 13, 18, 0, 28, 15, 30, 0, 22, 17, 0, 0, 36, 19, 26, 0, 40, 21, 42, 0, 21, 23, 46, 0, 42, 25, 34, 0, 52, 27, 0, 0, 38, 29, 58, 0, 60, 31, 42, 0, 52, 33, 66, 0, 46, 35, 70, 0
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,3
|
|
COMMENTS
|
a(n) = n - 1 if n is 1 or a prime, by Fermat's little theorem. It is conjectured that the converse is also true; see A055032 and A201560 and note that a(n) = n-1 <==> A055032(n) = 1 <==> A201560(n) = 0.
As of 1991, Giuga and Bedocchi had verified no composite n < 10^1700 satisfies a(n) = n - 1 (Ribemboim, 1991). - Alonso del Arte, May 10 2013
|
|
REFERENCES
|
Steve Dinh, The Hard Mathematical Olympiad Problems And Their Solutions, AuthorHouse, 2011, Problem 6 of Hong Kong Mathematical Olympiad 2007 (find a(7)), page 134.
Richard K. Guy, Unsolved Problems in Number Theory, A17.
Paulo Ribemboim, The Little Book of Big Primes. New York: Springer-Verlag (1991): 17.
|
|
LINKS
|
|
|
FORMULA
|
a(p) = p - 1 if p is prime, and a(4n) = 0.
a(n) = n/2 iff n is of the form 4k+2 (conjectured). - Ivan Neretin, Sep 23 2016
a(4*k+2) = 2*k+1; for a proof see corresponding link. - Bernard Schott, Dec 29 2021
|
|
EXAMPLE
|
Sum(m^3, m = 1 .. 3) = 1^3 + 2^3 + 3^3 = 36 == 0 (mod 4), so a(4) = 0.
|
|
MATHEMATICA
|
Table[Mod[Sum[i^(n - 1), {i, n - 1}], n], {n, 75}] (* Alonso del Arte, May 10 2013 *)
|
|
PROG
|
(PARI) a(n) = lift(sum(i=1, n, Mod(i, n)^(n-1))); \\ Michel Marcus, Feb 23 2020
(Python)
def a(n): return sum(pow(m, n-1, n) for m in range(1, n))%n
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|
|
A055032
|
|
Denominator of (Sum(m^(n-1),m=1..n-1)+1)/n.
|
|
+10
9
|
|
|
1, 1, 1, 4, 1, 3, 1, 8, 9, 5, 1, 12, 1, 7, 15, 16, 1, 9, 1, 20, 7, 11, 1, 24, 25, 13, 27, 28, 1, 15, 1, 32, 33, 17, 35, 36, 1, 19, 13, 40, 1, 21, 1, 44, 45, 23, 1, 48, 49, 25, 51, 52, 1, 27, 55, 56, 19, 29, 1, 60, 1, 31, 63, 64, 65, 33, 1, 68, 69, 35, 1, 72, 1
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,4
|
|
COMMENTS
|
It is conjectured that this is 1 iff n is 1 or a prime.
|
|
REFERENCES
|
R. K. Guy, Unsolved Problems in Number Theory, A17.
|
|
LINKS
|
|
|
MAPLE
|
a:= proc(n) local S, m;
S:= 1;
for m from 1 to n-1 do
S:= S + m &^(n-1) mod n;
od:
denom(S/n);
end proc;
|
|
MATHEMATICA
|
Table[Denominator[(Sum[m^(n - 1), {m, 1, n - 1}] + 1)/n], {n, 1, 10}] (* G. C. Greubel, Jun 06 2016 *)
|
|
PROG
|
(PARI) a(n) = denominator((sum(m=1, n - 1, m^(n - 1)) + 1)/n); \\ Indranil Ghosh, May 17 2017
(Python)
from sympy import Integer
def a(n): return ((sum(m**(n - 1) for m in range(1, n)) + 1)/Integer(n)).denominator() # Indranil Ghosh, May 17 2017
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,frac
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|
|
A055031
|
|
Numerator of (Sum(m^(n-1),m=1..n-1)+1)/n.
|
|
+10
6
|
|
|
1, 1, 2, 37, 71, 2213, 9596, 1200305, 24684613, 287152493, 1355849266, 427675990237, 1032458258547, 228796942438201, 16841089312342856, 665478473553144001, 1653031004194447737, 631449646252135295657, 3167496749732497119310
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,3
|
|
REFERENCES
|
R. K. Guy, Unsolved Problems Number Theory, A17.
|
|
LINKS
|
|
|
MATHEMATICA
|
Table[Numerator[(Sum[m^(n - 1), {m, n - 1}] + 1)/n], {n, 50}] (* Indranil Ghosh, May 17 2017 *)
|
|
PROG
|
(PARI) a(n) = numerator((sum(m=1, n - 1, m^(n - 1)) + 1)/n); \\ Indranil Ghosh, May 17 2017
(Python)
from sympy import Integer
def a(n): return ((sum(m**(n - 1) for m in range(1, n)) + 1)/Integer(n)).numerator() # Indranil Ghosh, May 17 2017
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,frac
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|
|
A201560
|
|
a(n) = (Sum(m^(n-1), m=1..n-1) + 1) modulo n.
|
|
+10
6
|
|
|
0, 0, 0, 1, 0, 4, 0, 1, 7, 6, 0, 1, 0, 8, 11, 1, 0, 10, 0, 1, 15, 12, 0, 1, 21, 14, 19, 1, 0, 16, 0, 1, 23, 18, 1, 1, 0, 20, 27, 1, 0, 22, 0, 1, 22, 24, 0, 1, 43, 26, 35, 1, 0, 28, 1, 1, 39, 30, 0, 1, 0, 32, 43, 1, 53, 34, 0, 1, 47, 36, 0, 1, 0, 38, 51, 1, 1
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,6
|
|
COMMENTS
|
Equals 0 if n is 1 or a prime, by Fermat's little theorem. It is conjectured that the converse is also true; see A055030, A055032, A204187 and note that a(n) = 0 <==> A055032(n) = 1 <==> A204187(n) = n-1.
|
|
REFERENCES
|
R. K. Guy, Unsolved Problems in Number Theory, A17.
|
|
LINKS
|
|
|
FORMULA
|
a(prime) = 0 and a(4n) = 1.
|
|
EXAMPLE
|
Sum(m^3, m=1..3) + 1 = 1^3 + 2^3 + 3^3 + 1 = 37 == 1 (mod 4), so a(4) = 1.
|
|
MATHEMATICA
|
Table[Mod[Plus @@ PowerMod[Range[n - 1], n - 1, n] + 1, n], {n, 77}] (* Ivan Neretin, Sep 23 2016 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|
|
|
|
1, 2, 3, 1, 5, 2, 7, 1, 1, 2, 11, 1, 13, 2, 1, 1, 17, 2, 19, 1, 3, 2, 23, 1, 1, 2, 1, 1, 29, 2, 31, 1, 1, 2, 1, 1, 37, 2, 3, 1, 41, 2, 43, 1, 1, 2, 47, 1, 1, 2, 1, 1, 53, 2, 5, 1, 3, 2, 59, 1, 61, 2, 1, 1, 1, 2, 67, 1, 1, 2, 71, 1, 73, 2, 3, 1, 1, 2, 79, 1, 1, 2, 83, 1, 1, 2, 1, 1, 89, 2, 1, 1, 3, 2, 1, 1, 97, 2, 1, 1, 101, 2, 103, 1, 1
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
|
|
LINKS
|
|
|
FORMULA
|
|
|
PROG
|
(PARI)
A060681(n) = (n-if(1==n, n, n/vecmin(factor(n)[, 1])));
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|
|
|
|
1, 2, 3, 1, 5, 2, 7, 1, 1, 2, 11, 1, 13, 2, 1, 1, 17, 2, 19, 1, 3, 2, 23, 1, 1, 2, 1, 7, 29, 2, 31, 1, 1, 2, 1, 1, 37, 2, 3, 1, 41, 14, 43, 1, 5, 2, 47, 1, 1, 2, 1, 1, 53, 2, 5, 1, 3, 2, 59, 1, 61, 2, 1, 1, 1, 2, 67, 1, 1, 2, 71, 1, 73, 2, 1, 1, 1, 2, 79, 1, 1, 2, 83, 1, 1, 2, 1, 1, 89, 2, 1, 1, 3, 2, 1, 3, 97, 2
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
FORMULA
|
|
|
PROG
|
(PARI)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
Search completed in 0.006 seconds
|