|
Search: 7712
|
|
|
| A000031 |
|
Number of n-bead necklaces with 2 colors when turning over is not allowed; also number of output sequences from a simple n-stage cycling shift register; also number of binary irreducible polynomials whose degree divides n. (Formerly M0564 N0203)
|
|
+20 63
|
|
| 1, 2, 3, 4, 6, 8, 14, 20, 36, 60, 108, 188, 352, 632, 1182, 2192, 4116, 7712, 14602, 27596, 52488, 99880, 190746, 364724, 699252, 1342184, 2581428, 4971068, 9587580, 18512792, 35792568, 69273668, 134219796, 260301176, 505294128, 981706832
(list; graph; listen)
|
|
|
OFFSET
|
0,2
|
|
|
COMMENT
|
Also a(n)-1 is number of 1's in truth table for lexicographically least de Bruijn cycle (Fredricksen).
|
|
REFERENCES
|
N. J. Fine, Classes of periodic sequences, Illinois J. Math., 2 (1958), 285-302.
H. Fredricksen, The lexicographically least de Bruijn cycle, J. Combin. Theory, 9 (1970) 1-5.
E. N. Gilbert and J. Riordan, Symmetry types of periodic sequences, Illinois J. Math., 5 (1961), 657-665.
S. W. Golomb, Shift-Register Sequences, Holden-Day, San Francisco, 1967, pp. 120, 172.
R. M. May, Simple mathematical models with very complicated dynamics, Nature, 261 (Jun 10, 1976), 459-467.
N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
N. J. A. Sloane, On single-deletion-correcting codes, in Codes and Designs (Columbus, OH, 2000), 273-291, Ohio State Univ. Math. Res. Inst. Publ., 10, de Gruyter, Berlin, 2002.
N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
R. P. Stanley, Enumerative Combinatorics, Cambridge, Vol. 2, 1999; see Problem 7.112(a).
R. C. Titsworth, Equivalence classes of periodic sequences, Illinois J. Math., 8 (1964), 266-270.
|
|
LINKS
|
T. D. Noe, Table of n, a(n) for n = 0..200
Joerg Arndt, Fxtbook
P. J. Cameron, Sequences realized by oligomorphic permutation groups, J. Integ. Seqs. Vol. 3 (2000), #00.1.5.
P. Flajolet and R. Sedgewick, Analytic Combinatorics, 2009; see page 18, 64
INRIA Algorithms Project, Encyclopedia of Combinatorial Structures 2
INRIA Algorithms Project, Encyclopedia of Combinatorial Structures 130
F. Ruskey, Necklaces, Lyndon words, De Bruijn sequences, etc.
N. J. A. Sloane, On single-deletion-correcting codes
Eric Weisstein's World of Mathematics, Link to a section of The World of Mathematics.
Wolfram Research, Number of necklaces
Index entries for "core" sequences
Index entries for sequences related to necklaces
|
|
FORMULA
|
a(n) = (1/n)*Sum_{ d divides n } phi(d)*2^(n/d).
|
|
EXAMPLE
|
For n=3 and n=4 the necklaces are {000,001,011,111} and {0000,0001,0011,0101,0111,1111}.
The analogous shift register sequences are {000..., 001001..., 011011..., 111...} and {000..., 00010001..., 00110011..., 0101..., 01110111..., 111... }.
|
|
MAPLE
|
with(numtheory); A000031 := proc(n) local d, s; if n = 0 then RETURN(1); else s := 0; for d in divisors(n) do s := s+phi(d)*2^(n/d); od; RETURN(s/n); fi; end; [ seq(A000031(n), n=0..50) ];
|
|
MATHEMATICA
|
a[n_] := Fold[ # 1 + EulerPhi[ # 2]2^(n/ # 2) &, 0, Divisors[n]]/n
|
|
PROGRAM
|
(PARI) {A000031(n)=if(n==0, 1, sumdiv(n, d, eulerphi(d)*2^(n/d))/n)}. - Randall L. Rathbun, Jan 11 2002
|
|
CROSSREFS
|
Cf. A001037 (primitive solutions to same problem), A014580, A000016, A000013, A000029 (if turning over is allowed), A000011, A001371, A058766.
Rows sums of triangle in A047996.
Dividing by 2 gives A053634.
A008965(n) = a(n) - 1 allowing different offsets.
Cf. A008965, A053635, A052823.
Sequence in context: A018137 A084239 A049708 this_sequence A111023 A008324 A084074
Adjacent sequences: A000028 A000029 A000030 this_sequence A000032 A000033 A000034
|
|
KEYWORD
|
nonn,easy,nice,core
|
|
AUTHOR
|
N. J. A. Sloane (njas(AT)research.att.com).
|
|
EXTENSIONS
|
There is an error in Fig. M3860 in the 1995 Encyclopedia of Integer Sequences: in the third line, the formula for A000031 = M0564 should be (1/n) sum phi(d) 2^(n/d).
|
|
|
|
|
| A063776 |
|
Number of subsets of {1,2,..n} which sum to 0 mod n. |
|
+20 9
|
|
| 2, 2, 4, 4, 8, 12, 20, 32, 60, 104, 188, 344, 632, 1172, 2192, 4096, 7712, 14572, 27596, 52432, 99880, 190652, 364724, 699072, 1342184, 2581112, 4971068, 9586984, 18512792, 35791472, 69273668, 134217728, 260301176, 505290272, 981706832
(list; graph; listen)
|
|
|
OFFSET
|
1,1
|
|
|
LINKS
|
T. D. Noe, Table of n, a(n) for n=1..200
N. Kitchloo and L. Pachter, An interesting result about subset sums (pdf)
|
|
FORMULA
|
a(n) = 1/n * sum_{d divides n and d is odd} 2^(n/d) * phi(d).
|
|
MATHEMATICA
|
Table[a = Select[ Divisors[n], OddQ[ # ] &]; Apply[Plus, 2^(n/a)*EulerPhi[a]]/n, {n, 1, 35}]
|
|
CROSSREFS
|
Equals 2*A000016(n). The super-diagonal of A068009. Cf. also A000010, A000013, A051293, A053633. For odd n a(n) = A000031(n) (necklaces).
Cf. A053636, A054539, A082550.
Sequence in context: A022476 A000013 A064484 this_sequence A118406 A072488 A074818
Adjacent sequences: A063773 A063774 A063775 this_sequence A063777 A063778 A063779
|
|
KEYWORD
|
nonn,nice
|
|
AUTHOR
|
Ahmed Fares (ahmedfares(AT)my-deja.com), Aug 16 2001
|
|
EXTENSIONS
|
More terms from Vladeta Jovovic (vladeta(AT)eunet.rs), Aug 20 2001
|
|
|
|
| |
|
| 2, 3, 4, 7, 8, 24, 20, 67, 96, 256, 188, 1060, 632, 3228, 5244, 11427, 7712, 51888, 27596, 184912, 232888, 606628, 364724, 2807936, 2405184, 8671944, 10368080, 36873652, 18512792, 167268640, 69273668, 496472227, 551130064, 1856103040
(list; graph; listen)
|
|
|
|
|
|
|
| A068038 |
|
Number of subsets of {1,2,3,...,n} that sum to 0 mod 17. |
|
+20 2
|
|
| 1, 1, 1, 1, 1, 1, 3, 8, 15, 30, 60, 120, 241, 482, 964, 1928, 3856, 7712, 15422, 30842, 61682, 123362, 246722, 493446, 986896, 1973790, 3947580, 7895160, 15790320, 31580642, 63161284, 126322568, 252645136, 505290272, 1010580544, 2021161084
(list; graph; listen)
|
|
|
OFFSET
|
0,7
|
|
|
PROGRAM
|
(PARI) {A068038(n)=local(v, v1); v=vector(17); v[1]=1; for(i=1, n, v1=vector(17); for(j=0, 16, v1[j+1]=v[j+1]+v[(j-i)%17+1]); v=v1); v[1]} (Max Alekseyev (maxale(AT)gmail.com), Jul 23 2005))
|
|
CROSSREFS
|
17th row of A068009.
Sequence in context: A015631 A116686 A135350 this_sequence A090741 A032234 A032255
Adjacent sequences: A068035 A068036 A068037 this_sequence A068039 A068040 A068041
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
Antti Karttunen, Feb 11 2002
|
|
EXTENSIONS
|
Rechecked by Max Alekseyev, maxale(AT)gmail.com, Jul 23 2005
|
|
|
|
| |
|
| 1, 2, 3, 4, 5, 8, 9, 12, 15, 16, 17, 32, 33, 60, 63, 64, 65, 104, 120, 125, 128, 129, 252, 255, 256, 257, 512, 513, 912, 972, 1008, 1017, 1020, 1023, 1024, 1025, 2000, 2025, 2040, 2045, 2048, 2049, 4092, 4095, 4096, 4097, 7712, 8160, 8177, 8192, 8193, 16380
(list; graph; listen)
|
|
|
OFFSET
|
1,2
|
|
|
COMMENT
|
2^n and 2^n + 1 seem to be in the sequence for all n. - Joshua Zucker (joshua.zucker(AT)stanfordalumni.org), May 04 2006
|
|
CROSSREFS
|
Cf. A109849.
Sequence in context: A044051 A083132 A118956 this_sequence A008749 A029000 A042962
Adjacent sequences: A109847 A109848 A109849 this_sequence A109851 A109852 A109853
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
Amarnath Murthy (amarnath_murthy(AT)yahoo.com), Jul 06 2005
|
|
EXTENSIONS
|
More terms from Joshua Zucker (joshua.zucker(AT)stanfordalumni.org), May 04 2006
|
|
|
|
| |
|
| 56, 285, 954, 2366, 4711, 7936, 11712, 15448, 18450, 20155, 20329, 19078, 16746, 13780, 10644, 7712, 5235, 3325, 1970, 1081, 544, 247, 99, 33, 8, 1
(list; graph; listen)
|
|
|
|
|
|
|
| A115833 |
|
Integers i such that 16*i XOR 17*i = 33*i. |
|
+20 2
|
|
| 0, 31, 61, 62, 121, 122, 124, 241, 242, 244, 248, 482, 484, 488, 496, 964, 968, 976, 977, 992, 1928, 1936, 1937, 1939, 1952, 1954, 1984, 3856, 3857, 3859, 3863, 3872, 3874, 3878, 3904, 3908, 3968, 7711, 7712, 7714, 7718, 7726, 7744, 7748, 7756
(list; graph; listen)
|
|
|
|
|
|
|
| A131139 |
|
Counts 2-wild partitions. In general p-wild partitions of n are defined so that they are in bijection with geometric equivalence classes of degree n algebra extensions of the p-adic field Q_p. Here two algebra extensions are equivalent if they become isomorphic after tensoring with the maximal unramified extension of Q_p. |
|
+20 2
|
|
| 1, 1, 4, 5, 36, 40, 145, 180, 1572, 1712, 6181, 7712, 43860, 49856, 171844, 213953, 1634448, 1798404, 6362336, 7945252, 43391232, 49532049, 169120448, 210664996, 1310330112, 1471297572
(list; graph; listen)
|
|
|
OFFSET
|
0,3
|
|
|
COMMENT
|
In general, the number of p-wild partitions of n is equal to the number of partitions of n if and only if n<p. From n=p onward, there are many more p-wild partitions.
|
|
LINKS
|
David P. Roberts, Wild Partitions and Number Theory Journal of Integer Sequences, Volume 10, Issue 6, Article 07.6.6, (2007)
|
|
FORMULA
|
The generating function is prod_{j=0}^infinity theta_2(2^(2^j-1) x)^(2^j) where theta_2(y) is the generating function for 2-cores A010054
|
|
EXAMPLE
|
a(2) = 4, since there are four quadratic algebras over Q_2 up to geometric equivalence, namely Q_2 times Q_2, Q_2(sqrt{-1}), Q_2(sqrt{2}) and Q_2(sqrt{-2})
|
|
CROSSREFS
|
Cf. A000041, A010054, A131140.
Sequence in context: A013468 A041907 A151450 this_sequence A152291 A041557 A123304
Adjacent sequences: A131136 A131137 A131138 this_sequence A131140 A131141 A131142
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
David P. Roberts (roberts(AT)morris.umn.edu), Jun 19 2007
|
|
|
|
|
| A164843 |
|
The smallest magic constant of an n X n magic square with distinct prime entries. |
|
+20 2
|
|
| 177, 120, 233, 432, 733, 1154, 1731, 2470, 3417, 4584, 6013, 7712, 9731, 12088, 14807, 17940, 21501, 25530, 30021, 35086, 40675, 46840, 53631, 61092, 69251, 78100, 87697, 98084, 109309
(list; graph; listen)
|
|
|
OFFSET
|
3,1
|
|
|
COMMENT
|
a(n) >= m(n), where m(n) is the smallest integer of the same parity as n, which is >= (sum_{k=1..n^2} prime(k+1))/n. For example, sum_{k=1..5^2} prime(k+1)/5=231.8, so m(5)=233. Conjecture: for n>4, a(n)=m(n) or a(n)=m(n)+2.
|
|
LINKS
|
Harvey Heinz, Prime magic squares
A. Lelechenko and N. Makarova, Examples of prime magic n X n squares with minimal magic constant for n=5..13.
N. Makarova, Smallest prime magic squares, Part I (in Russian)
N. Makarova, Smallest prime magic squares, Part II (in Russian)
Mathworld, Prime magic squares
PlanetMath, Prime magic squares
Stefano Tognon, Prime Analysis
|
|
EXAMPLE
|
From N. Makarova (natalimak1(AT)yandex.ru), Sep 26 2009 (Start)
Here is a 14 X 14 example:
[3 43 59 131 181 271 383 599 797 919 971 1039 1123 1193
1151 433 967 211 337 491 397 691 83 523 593 773 449 613
263 373 101 1063 877 617 419 911 787 241 151 839 739 331
503 439 809 1051 1091 659 157 1031 71 139 379 179 743 461
173 647 1069 389 1049 19 311 223 317 1103 283 947 499 683
547 13 1061 353 229 853 677 751 571 983 1201 29 193 251
643 269 887 733 23 409 1129 191 769 401 47 1109 149 953
163 881 673 107 431 487 991 631 829 109 349 367 811 883
1163 827 607 1171 443 653 463 5 457 577 31 293 601 421
509 1097 313 757 167 709 761 347 857 137 619 233 89 1117
1093 1019 7 521 1033 61 73 941 1009 859 701 11 127 257
53 467 97 307 1153 557 1021 569 359 937 821 113 977 281
907 17 823 641 661 929 67 719 79 587 479 563 1013 227
541 1187 239 277 37 997 863 103 727 197 1087 1217 199 41] (End)
Comment from N. J. A. Sloane, Sep 28 2009: this contains 192 consecutive primes, 3 to 1171, plus 1187, 1193, 1201, 1217.
For the 3 X 3 case see A024351. For the 4 X 4 magic square see the Mathworld link.
|
|
CROSSREFS
|
Cf. A073502, A073350, A125007.
|
|
KEYWORD
|
nonn,more,new
|
|
AUTHOR
|
Andrew Lelechenko (andrew.lelechenko(AT)gmail.com), Aug 28 2009 and Natalia Makarova (natalimak1(AT)yandex.ru), Sep 08 2009
|
|
EXTENSIONS
|
Partially reworded by R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Aug 31 2009
Edited by N. J. A. Sloane, Sep 14 2009
a(11)-a(14) from N. Makarova, Sep 18 2009
Edited by Max Alekseyev (maxale(AT)gmail.com), Sep 22 2009
a(15)-a(31) from N. Makarova and S. Tognon. - Max Alekseyev (maxale(AT)gmail.com), Jan 28 2010
|
|
|
|
|
| A010097 |
|
Prefix (or Levenshtein) codes for natural numbers. |
|
+20 1
|
|
| 0, 2, 12, 13, 112, 113, 114, 115, 232, 233, 234, 235, 236, 237, 238, 239, 3840, 3841, 3842, 3843, 3844, 3845, 3846, 3847, 3848, 3849, 3850, 3851, 3852, 3853, 3854, 3855, 7712, 7713, 7714, 7715
(list; graph; listen)
|
|
|
OFFSET
|
1,2
|
|
|
REFERENCES
|
R. E. Krichevsky, Szhatie i poisk informatsii (Compressing and searching for information), Moscow, 1988, ISBN 5-256-00325-9.
|
|
FORMULA
|
The code for n is found as follows: from right to left, the truncated (without the leading 1) binary representations of n, int(log2(n)), int(log2(int(log2(n)))), etc., are written as long as they consist of at least one bit; then we write a 0 followed by log*(n) 1's.
|
|
CROSSREFS
|
Sequence in context: A072483 A081539 A141273 this_sequence A103761 A078755 A086285
Adjacent sequences: A010094 A010095 A010096 this_sequence A010098 A010099 A010100
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
Leonid Broukhis (leob(AT)mailcom.com)
|
|
|
Search completed in 0.011 seconds
|