cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-5 of 5 results.

A136604 Partial sums of A066957.

Original entry on oeis.org

22, 65, 83, 124, 142, 182, 206, 245, 263, 309, 326, 364, 391, 429, 453, 496, 514, 553, 576, 613, 636, 679, 704, 740, 772, 808, 833, 877, 902, 937, 971, 1002, 1028, 1065, 1089, 1124, 1156, 1188, 1215, 1252, 1283, 1309, 1343, 1377, 1406, 1448, 1475, 1502
Offset: 0

Views

Author

Reinhard Zumkeller, Jan 12 2008

Keywords

Comments

a(n) = a(n-1) + A066957(n), a(0) = A066957(0);
for n>=123456789: a(n) = 6572 = 6561 + 11 = 3^8 + A066957(0)/2.

A136602 Nonnegative numbers that can be obtained by inserting minus and plus-signs in 123456789.

Original entry on oeis.org

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72
Offset: 1

Views

Author

Reinhard Zumkeller, Jan 12 2008

Keywords

Comments

A066957(a(n)) > 0; complement of A136601; A136603 is a subsequence;
a(n) = n-1 for n <= 211 = A136601(1).
The sequence is finite: a(1715) = 123456789 is the last term.

A136601 Complement of A136602.

Original entry on oeis.org

211, 219, 221, 227, 229, 233, 235, 239, 241, 247, 277, 284, 286, 287, 300, 302, 310, 377, 388, 390, 395, 397, 400, 403, 404, 406, 413, 469, 485, 487, 493, 494, 499, 505, 507, 508, 512, 518, 526, 559, 575, 593, 598, 607, 608, 611, 613, 616, 632, 635, 665
Offset: 1

Views

Author

Reinhard Zumkeller, Jan 12 2008

Keywords

Comments

A066957(a(n)) = 0.

A066956 a(n) is the number of ways of placing '+' and '-' among the digits 123456789 so that the result of the expression is n, '-' before 1 not allowed.

Original entry on oeis.org

11, 26, 11, 18, 8, 21, 12, 17, 8, 22, 12, 21, 11, 16, 15, 20, 8, 17, 11, 20, 15, 16, 11, 23, 18, 13, 14, 21, 15, 19, 17, 14, 19, 19, 7, 14, 19, 19, 17, 18, 16, 17, 18, 10, 15, 26, 18, 15, 16, 12, 17, 19, 9, 17, 21, 16, 13, 14, 16, 17, 17, 11, 13, 22, 14, 13, 15, 15, 15, 17, 7
Offset: 0

Views

Author

Miklos SZABO (mike(AT)ludens.elte.hu), Feb 01 2002

Keywords

Comments

a(n) = 0 for all but finitely many n. In particular, a(n) = 0 for n > 123456789. - Charles R Greathouse IV, Aug 20 2012

Examples

			a(4) = 8 because 4 = 12-34-56-7+89 = 12-3-4-5-6-7+8+9 = 12-3+45-67+8+9 = 12-3+4-5+6+7-8-9 = 12-3+4+5-6-7+8-9 = 12+3-4-5+6-7+8-9 = 12+3-4+5-6-7-8+9 = 1+2-34+5+6+7+8+9 and only for these.
		

Crossrefs

Cf. A066957.

Programs

  • Python
    from collections import Counter
    from itertools import product, zip_longest
    def aupton(nn):
        digs = list("123456789")
        c = Counter(eval("".join(filter(None, sum(zip_longest(digs, ops), ())))) for ops in product(["-", "+", ""], repeat=8))
        return [c[k] for k in range(nn+1)]
    print(aupton(70)) # Michael S. Branicky, Nov 26 2021

A136603 Positive numbers having a unique representation by inserting minus and plus-signs in 123456789.

Original entry on oeis.org

176, 191, 194, 196, 209, 213, 215, 217, 223, 237, 253, 259, 263, 272, 274, 275, 289, 290, 292, 293, 295, 305, 307, 308, 353, 361, 367, 379, 380, 381, 382, 386, 392, 399, 401, 405, 415, 416, 418, 419, 427, 443, 461, 463, 467, 475, 477, 479, 481, 490, 491
Offset: 1

Views

Author

Reinhard Zumkeller, Jan 12 2008

Keywords

Comments

A066957(a(n)) = 1; subsequence of A136601;
the sequence is finite with 869 terms.

Examples

			a(1) = 176 = 1 - 2 + 34 + 56 + 78 + 9;
a(2) = 191 = 123 + 4 + 56 + 7 - 8 + 9;
a(3) = 194 = 1 - 2 + 34 + 5 + 67 + 89;
a(4) = 196 = -1 + 2 + 34 + 5 + 67 + 89;
a(5) = 209 = 1 + 234 + 56 + 7 - 89;
a(6) = 213 = 123 + 4 + 5 - 6 + 78 + 9;
a(7) = 215 = 123 + 4 - 5 + 6 + 78 + 9;
a(8) = 217 = 123 - 4 + 5 + 6 + 78 + 9;
a(9) = 223 = -1 + 23 + 45 + 67 + 89;
a(10) = 237 = -123 + 456 - 7 - 89;
a(11) = 253 = -1 + 2 + 345 - 6 - 78 - 9;
a(12) = 259 = -1 + 234 - 56 - 7 + 89;
a(869) = 123456789 = A136602(1715).
		
Showing 1-5 of 5 results.