Search: keyword:new
|
|
A357644
|
|
Number of integer compositions of n into parts that are alternately unequal and equal.
|
|
+0
14
|
|
|
1, 1, 1, 3, 4, 7, 8, 13, 17, 25, 30, 44, 58, 77, 98, 142, 176, 245, 311, 426, 548
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,4
|
|
LINKS
|
Table of n, a(n) for n=0..20.
|
|
EXAMPLE
|
The a(1) = 1 through a(7) = 13 compositions:
(1) (2) (3) (4) (5) (6) (7)
(12) (13) (14) (15) (16)
(21) (31) (23) (24) (25)
(211) (32) (42) (34)
(41) (51) (43)
(122) (411) (52)
(311) (1221) (61)
(2112) (133)
(322)
(511)
(2113)
(3112)
(12211)
|
|
MATHEMATICA
|
Table[Length[Select[Join@@Permutations/@IntegerPartitions[n], And@@Table[#[[i]]==#[[i+1]], {i, 2, Length[#]-1, 2}]&&And@@Table[#[[i]]!=#[[i+1]], {i, 1, Length[#]-1, 2}]&]], {n, 0, 10}]
|
|
CROSSREFS
|
Without equal relations we have A000213, equal only A027383.
Even-length opposite: A003242, ranked by A351010, partitions A035457.
The version for partitions is A351006.
The opposite version is A357643, partitions A351005.
A011782 counts compositions.
A357621 gives half-alternating sum of standard compositions, skew A357623.
A357645 counts compositions by half-alternating sum, skew A357646.
Cf. A001590, A029862, A035544, A097805, A122129, A122134, A122135, A351003, A351004, A351007, A357136, A357641.
|
|
KEYWORD
|
nonn,more,new
|
|
AUTHOR
|
Gus Wiseman, Oct 14 2022
|
|
STATUS
|
approved
|
|
|
|
|
|
|
1, 2, 6, 30, 154, 1105, 4788, 20677, 216931, 858925, 7105392, 5546059, 2018025900, 1480452337, 3238556831, 107972737, 18425956230000, 4683032671, 14053747110612300, 160436746661, 33809725025123, 15260431896321667
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
|
|
|
A357035
|
|
a(n) is the smallest number that has exactly n divisors that are digitally balanced numbers (A031443).
|
|
+0
0
|
|
|
1, 2, 10, 36, 150, 180, 420, 840, 900, 3420, 2520, 5040, 6300, 7560, 12600, 15120, 18900, 42840, 32760, 37800, 95760, 105840, 69300, 124740, 163800, 138600, 166320, 327600, 249480, 207900, 491400, 491400, 622440, 498960, 706860, 415800, 963900, 1496880, 1164240, 1081080
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,2
|
|
LINKS
|
Table of n, a(n) for n=0..39.
|
|
EXAMPLE
|
1 has no divisors in A031443, so a(0) = 1;
2 has divisors 1 = 1_2, 2 = 10_2 and 2 = A031443(1), so a(1) = 2.
10 has divisors 2 = 10_2 and 10 = 1010_2 in A031443, so a(2) = 10.
|
|
MATHEMATICA
|
digBalQ[n_] := Module[{d = IntegerDigits[n, 2], m}, EvenQ @ (m = Length[d]) && Count[d, 1] == m/2]; f[n_] := DivisorSum[n, 1 &, digBalQ[#] &]; seq[len_, nmax_] := Module[{s = Table[0, {len}], c = 0, n = 1, i}, While[c < len && n < nmax, i = f[n] + 1; If[i <= len && s[[i]] == 0, c++; s[[i]] = n]; n++]; s]; seq[40, 10^7] (* Amiram Eldar, Sep 26 2022 *)
|
|
PROG
|
(Magma) bal:=func<n|Multiplicity(Intseq(n, 2), 1) eq Multiplicity(Intseq(n, 2), 0)>; a:=[]; for n in [0..38] do k:=1; while #[d:d in Divisors(k)|bal(d)] ne n do k:=k+1; end while; Append(~a, k); end for; a;
|
|
CROSSREFS
|
Cf. A031443.
|
|
KEYWORD
|
nonn,base,new
|
|
AUTHOR
|
Marius A. Burtea, Sep 20 2022
|
|
STATUS
|
approved
|
|
|
|
|
A357034
|
|
a(n) is the smallest number with exactly n divisors that are hoax numbers (A019506).
|
|
+0
0
|
|
|
1, 22, 308, 638, 3696, 4212, 18480, 26400, 55080, 52800, 73920, 108108, 220320, 216216, 275400, 324324, 432432, 550800, 734400, 1908000, 1144800, 1101600, 1377000, 1652400, 3027024, 2203200, 4039200, 2754000, 3304800, 5724000, 6528600, 9180000, 8586000, 5508000
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,2
|
|
LINKS
|
Table of n, a(n) for n=0..33.
|
|
EXAMPLE
|
1 has no divisors in A019506, so a(0) = 1;
22 has divisors 1, 2, 11, 22, and 22 = A019506(1), so a(1) = 22.
308 has divisors 1, 2, 4, 7, 11, 14, 22, 28, 44, 77, 154, 308 and 22 = A019506(1), 308 = A019506(14), so a(2) = 308.
|
|
MATHEMATICA
|
digitSum[n_] := Total @ IntegerDigits[n]; hoaxQ[n_] := CompositeQ[n] && Total[digitSum /@ FactorInteger[n][[;; , 1]]] == digitSum[n]; f[n_] := DivisorSum[n, 1 &, hoaxQ[#] &]; seq[len_, nmax_] := Module[{s = Table[0, {len}], c = 0, n = 1, i}, While[c < len && n < nmax, i = f[n] + 1; If[i <= len && s[[i]] == 0, c++; s[[i]] = n]; n++]; s]; seq[10, 10^5] (* Amiram Eldar, Sep 26 2022 *)
|
|
PROG
|
(Magma) hoax:=func<n| not IsPrime(n) and (&+Intseq(n, 10) eq &+[ &+Intseq(p, 10): p in PrimeDivisors(n)])>; a:=[]; for n in [0..33] do k:=1; while #[d:d in Set(Divisors(k)) diff {1}|hoax(d)] ne n do k:=k+1; end while; Append(~a, k); end for; a;
|
|
CROSSREFS
|
Cf. A019506.
|
|
KEYWORD
|
nonn,base,new
|
|
AUTHOR
|
Marius A. Burtea, Sep 20 2022
|
|
STATUS
|
approved
|
|
|
|
|
A357033
|
|
a(n) is the smallest number that has exactly n divisors that are cyclops numbers (A134808).
|
|
+0
0
|
|
|
1, 101, 202, 404, 606, 1212, 2424, 7272, 21816, 41208, 84048, 123624, 144144, 336336, 288288, 504504, 432432, 865368, 864864, 1009008, 2378376, 1729728, 3459456, 3027024, 4756752, 6054048, 9081072, 11099088, 12108096, 16648632, 23207184, 29405376, 36324288
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,2
|
|
LINKS
|
Table of n, a(n) for n=0..32.
|
|
EXAMPLE
|
The divisors of 101 are 1 and 101. Of those, only 101 is a cyclops number; it is the smallest cyclops number, so a(1) = 101.
The divisors of 202 are 1, 2, 101, and 202, the cyclops numbers being 101 and 202, so a(2) = 202.
The divisors of 404 are 1, 2, 4, 101, 202, and 404, the cyclops numbers being 101, 202 and 404, so a(3) = 404.
|
|
MAPLE
|
L:= Vector(10^8):
C:= [0]:
for d from 3 to 7 by 2 do
C:= [seq(seq(seq(a*10^(d-1)+10*b+c, c=1..9), b=C), a=1..9)];
for x in C do
Mx:= [seq(i, i=x..10^8, x)];
L[Mx]:= map(`+`, L[Mx], 1)
od;
od:
V:= Array(0..max(L)):
for n from 1 to 10^8 do
if V[L[n]] = 0 then V[L[n]]:= n; fi
od:
if member(0, V, 'k') then convert(V[0..k-1], list)
else convert(V, list)
fi; # Robert Israel, Sep 20 2022
|
|
MATHEMATICA
|
cyclopQ[n_] := Module[{d = IntegerDigits[n], len}, OddQ[len = Length[d]] && Position[d, 0] == {{(len + 1)/2}}]; f[n_] := DivisorSum[n, 1 &, cyclopQ[#] &]; seq[len_, nmax_] := Module[{s = Table[0, {len}], c = 0, n = 1, i}, While[c < len && n < nmax, i = f[n] + 1; If[i <= len && s[[i]] == 0, c++; s[[i]] = n]; n++]; s]; seq[10, 10^5] (* Amiram Eldar, Sep 26 2022 *)
|
|
PROG
|
(Magma) ints:=func<n|n eq 0 select [0] else Intseq(n)>; cyc:=func<n|IsOdd(#ints(n)) and ints(n)[(#ints(n)+1) div 2] eq 0 and Multiplicity(ints(n), 0) eq 1>; a:=[]; for n in [0..32] do k:=1; while #[s:s in Divisors(k)| cyc(s)] ne n do k:=k+1; end while; Append(~a, k); end for; a;
|
|
CROSSREFS
|
Cf. A134808.
|
|
KEYWORD
|
nonn,base,new
|
|
AUTHOR
|
Marius A. Burtea, Sep 20 2022
|
|
STATUS
|
approved
|
|
|
|
|
A357643
|
|
Number of integer compositions of n into parts that are alternately equal and unequal.
|
|
+0
14
|
|
|
1, 1, 2, 1, 3, 3, 5, 5, 9, 7, 17, 14, 28, 25, 49, 42, 87, 75, 150, 132, 266, 226, 466, 399, 810, 704, 1421, 1223, 2488, 2143, 4352, 3759, 7621, 6564, 13339, 11495, 23339, 20135, 40852, 35215, 71512, 61639, 125148, 107912, 219040, 188839, 383391, 330515, 670998
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,3
|
|
LINKS
|
Table of n, a(n) for n=0..48.
|
|
EXAMPLE
|
The a(1) = 1 through a(8) = 9 compositions:
(1) (2) (3) (4) (5) (6) (7) (8)
(11) (22) (113) (33) (115) (44)
(112) (221) (114) (223) (116)
(1122) (331) (224)
(2211) (11221) (332)
(1133)
(3311)
(22112)
(112211)
|
|
MATHEMATICA
|
Table[Length[Select[Join@@Permutations/@IntegerPartitions[n], And@@Table[#[[i]]==#[[i+1]], {i, 1, Length[#]-1, 2}]&&And@@Table[#[[i]]!=#[[i+1]], {i, 2, Length[#]-1, 2}]&]], {n, 0, 15}]
|
|
CROSSREFS
|
The even-length version is A003242, ranked by A351010, partitions A035457.
Without equal relations we have A016116, equal only A001590 (apparently).
The version for partitions is A351005.
The opposite version is A357644, partitions A351006.
A011782 counts compositions.
A357621 gives half-alternating sum of standard compositions, skew A357623.
A357645 counts compositions by half-alternating sum, skew A357646.
Cf. A029862, A035544, A097805, A122129, A122134, A122135, A351003, A351004, A351007, A357136, A357641.
|
|
KEYWORD
|
nonn,new
|
|
AUTHOR
|
Gus Wiseman, Oct 12 2022
|
|
EXTENSIONS
|
More terms from Alois P. Heinz, Oct 12 2022
|
|
STATUS
|
approved
|
|
|
|
|
A357822
|
|
Simplicial 3-spheres (Triangulations of S^3) with n vertices
|
|
+0
0
|
|
|
|
|
|
|
A357658
|
|
a(n) is the maximum Hamming weight of squares k^2 in the range 2^n <= k^2 < 2^(n+1).
|
|
+0
0
|
|
|
1, 2, 3, 3, 5, 4, 6, 6, 8, 8, 9, 9, 13, 11, 13, 12, 14, 15, 16, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 25, 26, 27, 28, 29, 30, 31, 31, 34, 33, 34, 37, 37, 38, 38, 39, 39, 41, 41, 42, 44, 44, 44, 46, 47, 47, 49, 50, 51, 52, 52, 53, 54, 55, 55, 57, 57, 58, 59, 62, 63
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
2,2
|
|
LINKS
|
Table of n, a(n) for n=2..71.
|
|
EXAMPLE
|
n A357753(n) a(n) A357659(n) A357660(n) A357754(n)
bits 2^n least sq Ha w k_min ^2 k_max ^2 largest sq
2 4 4 1 2 4 2 4 4
3 8 9 2 3 9 3 9 9
4 16 16 3 5 25 5 25 25
5 32 36 3 7 49 7 49 49
6 64 64 5 11 121 11 121 121
7 128 144 4 13 169 15 225 225
12 4096 4096 9 75 5625 89 7921 8100
|
|
CROSSREFS
|
Cf. A000120, A000290, A356878, A357304, A357753, A357754.
A357659 and A357660 are the minimal and the maximal values of k producing a(n).
|
|
KEYWORD
|
nonn,base,new
|
|
AUTHOR
|
Hugo Pfoertner, Oct 09 2022
|
|
STATUS
|
approved
|
|
|
|
|
A357659
|
|
a(n) is the least k such that k^2 has a maximal Hamming weight A357658(n) in the range 2^n <= k^2 < 2^(n+1).
|
|
+0
0
|
|
|
2, 3, 5, 7, 11, 13, 21, 27, 45, 53, 75, 101, 181, 217, 362, 437, 627, 923, 1241, 1619, 2505, 3915, 5221, 6475, 11309, 15595, 19637, 31595, 44491, 61029, 69451, 113447, 185269, 244661, 357081, 453677, 642119, 980853, 1380917, 1961706, 2965685, 3923411, 5931189, 8096813
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
|
|
|
A357660
|
|
a(n) is the largest k such that k^2 has a maximal Hamming weight A357658(n) in the range 2^n <= k^2 < 2^(n+1).
|
|
+0
0
|
|
|
2, 3, 5, 7, 11, 15, 21, 27, 45, 53, 89, 117, 181, 235, 362, 491, 723, 949, 1241, 1773, 2891, 3915, 5747, 7093, 11309, 16203, 19637, 31595, 44491, 64747, 86581, 113447, 185269, 244661, 357081, 453677, 738539, 980853, 1481453, 2079669, 2965685, 3923411, 5931189, 8222581
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
|
Search completed in 0.105 seconds
|