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-7 of 7 results.

A138482 Mutually-praising pairs excluding autobiographical numbers A138480. Version 2: numbers may have more than 10 digits.

Original entry on oeis.org

130, 230, 430, 530, 630, 730, 830, 930, 1101, 2210, 10110, 11200, 23100, 43100, 53100, 63100, 73100, 83100, 93100, 211100, 230100, 311100, 411100, 430100, 511100, 530100, 611100, 630100, 711100, 730100, 811100, 830100, 911100, 930100
Offset: 1

Views

Author

Martin Fuller, Mar 20 2008

Keywords

Examples

			130 and 1101 are a mutually-praising pair: 130 specifies a number with 1 digit equal to "0", 3 digit "1" and nothing else. 1101 specifies 1 digit "0", 1 digit "1", no digits "2" and 1 digit "3". 73100 and 21010001000 is the first pair with a number of more than 10 digits.
		

Crossrefs

A046043 Autobiographical numbers (or curious numbers): list of numbers m = x_0 x_1 x_2 ... x_{b-1} (written in base b) such that x_i is the number of "digits" in m that are equal to i, for all i=0,...,b-1.

Original entry on oeis.org

1210, 2020, 21200, 3211000, 42101000, 521001000, 6210001000
Offset: 1

Views

Author

Robert Leduc (leduc(AT)macalester.edu)

Keywords

Comments

Note that the base b is the total number of "digits" in m. Since the numbers are written without spaces between the digits x_i, we must take b <= 10.
There are no such numbers for b<=3 or b=6, two such numbers for b=4, and exactly one such number for b=5 and each b>=7. - David Callan, Feb 17 2017
The proof of completeness is based on: x_0 > 0; x_i > 2 only if i = 0; for i > 2, x_i = 1 if i = x_0, x_i = 0 otherwise.
Enumerated by David Castro (david_castro(AT)retek.com).

Examples

			m = 1210 is written in base 4 (since it has 4 digits), and has one 0, two 1's, one 2 and zero 3's and m = "one two one zero".
		

References

  • E. Angelini, "Jeux de suites", in Dossier Pour La Science, pp. 32-35, Volume 59 (Jeux math'), April/June 2008, Paris.
  • M. Gardner, Mathematical Circus, pp. 128; 135 Prob. 7 Alfred A. Knopf NY 1979.
  • Tanya Khovanova, A Story of Storytelling Numbers, Math. Horizons, Sep 2009, 14-17.

Crossrefs

Cf. A138480 (another version), A359049.
Compare with the "Look-and-Say" version A047841.

Programs

  • Mathematica
    isSelfDescribing[n_Integer] := (RotateRight[DigitCount[n]] == PadRight[IntegerDigits[n], 10]); Select[Range[10^10 - 1], isSelfDescribing] (* Martin Ettl, Oct 09 2012 *) (* Warning: This program causes Mathematica to crash! - David Callan, Feb 17 2017 *)

Extensions

Edited by N. J. A. Sloane, Aug 15 2019

A359049 Autobiographical numbers k whose decimal digits are a concatenation count(0), count(1), ..., count(m) for some m, where count(j) is the number of (possibly overlapping) occurrences of j within the digits of k itself.

Original entry on oeis.org

1210, 2020, 21200, 3211000, 42101000, 521001000, 6210001000, 53110100002, 62200010001, 541011000021, 6401101000310, 74011001003100, 840110001031000, 1040110000031000, 9321000001201000, 94201000012110000, 1160010100041000010, 11611001000320000100, 13313000000001200000, 13313000000100200000
Offset: 1

Views

Author

Marc Morgenegg, Dec 14 2022

Keywords

Comments

In other words: Counting the zeros (j=0) in the term gives the first concatenation of decimal digits (number of zeros) in the term, counting all ones, gives the second, and so on.
A term can have any number of digits.
This sequence is in base 10.

Examples

			1040110000031000 is a term: we have ten 0's, four 1's, zero 2's, one 3, one 4, three 10's and one 11 as integers in the term, visualized as follows:
  Integers(j): 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14
  term:       10 4 0 1 1 0 0 0 0 0  3  1  0  0  0
Notice that overlapping integers are counted so 110 is one 11, one 10 (or 111 would be two 11's).
		

Crossrefs

Extensions

a(17)-a(20) from Michael S. Branicky, Dec 14 2022

A234512 Numbers n = d(0)d(1)d(2)...d(r) such that d(i) is the number of differences |d(i)-d(i-1)| equal to i in n, i = 1,2,...,r.

Original entry on oeis.org

110, 311000, 2301000, 3003000, 3120000, 42100000, 410300000, 430100000
Offset: 1

Views

Author

Michel Lagneau, Dec 27 2013

Keywords

Comments

In the decimal system a differential autobiographical number is a natural number such that d(0) is the number of differences |d(i)-d(i-1)| = 0, d(1) is the number of differences |d(i)-d(i-1)| = 1, and so on.
Property of this sequence: the sum of the decimal digits of a(n) equals length(a(n))-1.
It is possible to extend this problem by counting the differences |d(i)-d(i-1)| with the additional difference |d(r)-d(1)|. So we find a new sequence b(n) = 22100, 311100, 3022000, 20402000, 31310000, 40004000, 422010000, 430110000 with the property that the sum of the decimal digits of b(n) equals length(b(n)).

Examples

			311000 is in the sequence because the differential digits are:
|1-3| = 2;
|1-1| = 0;
|0-1| = 1;
|0-0| = 0;
|0-0| = 0, and
0 appears three times => 3;
1 appears one time => 1;
2 appears one time  => 1;
3 appears zero time => 0;
4 appears zero time => 0;
5 appears zero time => 0, hence a(2) = 311000.
		

Crossrefs

Programs

  • Maple
    with(numtheory):for n from 10 to 10^10 do:T:=array(0..9):for k from 0 to 9 do:T[k]:=0:od:x:=convert(n,base,10):n1:=nops(x):for i from 1 to n1-1 do:a:=abs(x[i]-x[i+1]):T[a]:=T[a]+1:od:s:=sum('T[i]*10^(10-i-1)','i'=0..9): for u from 9 by -1 to 1 do:if T[0]<>0 and irem(s,10^u)=0 and s/10^u = n then print(n):else fi:od:od:

A358538 Autobiographical numbers: the first digit of the term counts how many 0's the term in total has, the second how many 1's etc. up to the last digit but no more than b-1, where b is the base of the sequence. This sequence is in base b=10.

Original entry on oeis.org

1210, 2020, 21200, 3211000, 42101000, 521001000, 6210001000, 52200100019, 52200100108, 52200101007, 52200110006, 52201100004, 52210100003, 53010100019, 53010100108, 53010101007, 53010110006, 53011100004, 53110100002, 61200020006, 62200010001, 63010010001, 70200002007, 72100001000, 431110000299
Offset: 1

Views

Author

Marc Morgenegg, Nov 21 2022

Keywords

Comments

Other terms include: 640010100011, 722000010001, 722000010010, 730100010001, 730100010010, 802000002008, 802000002080, 821000001000, 6500011000111, 7400100100011, 7400100100101, 8301000010001, 9020000002009, 9020000002090, 9020000002900, 9210000001000.
This sequence is finite. The last term starts with 99999999898... and has 89 digits.
This sequence is for base b=10. For each base b > 2, the last term of the corresponding sequence has b^2 - b - 1 digits.
For b > 2, the final term of the sequence equals b^((b-1)^2 - 2) - (b-1)*b^((b-1)*b - 1) + ((b^(b-1) - 1)/(b-1)) * b^(b-1) * ((b-1)*b^(b*(b-1)) - b^((b-1)^2 + 1) + 1)/(b^(b-1) - 1)^2. The base-b expansion of this number is the concatenation of b-2 digits b-1, 1 digit b-2, 1 digit b-1, b-3 digits b-2, and b-1 digits k for each k in b-3..0. This is equivalent to taking a string of digits consisting of b-1 copies of every valid base-b digit (0..b-1), sorting its digits in descending order, removing one of the digits b-2, and then swapping the positions of the last digit b-1 and the first digit b-2. (Thus, for b=10, the base-10 expansion of the final term is the concatenation of eight 9's, one 8, one 9, seven 8's, nine 7's, nine 6's, ..., nine 1's, and nine 0's.) - Jon E. Schoenfield, Nov 21 2022

Examples

			63010010001 is a term: we have six 0's, three 1's, one 3 and one 6 as digits in the term, visualized as follows:
  Digits: 0123456789
   term:  63010010001.
Note that this example also shows, starting from the 11th digit, there is no more representation of the frequency of that digit, because only the first b digits of its base-b expansion count the occurrences of the corresponding digit. In this case, the last digit, 1, is the 11th.
		

Crossrefs

Programs

  • Python
    # see linked program

Extensions

a(14)-a(19) inserted and a(25) from Michael S. Branicky, Nov 21 2022

A358711 Autobiographical numbers: let the k-th digit count the k-th nonnegative integer (A001477(k)) (possibly overlapping) occurrences in the term.

Original entry on oeis.org

1210, 2020, 21200, 3211000, 42101000, 521001000, 6210001000, 53110100002, 62200010001, 541011000021, 6401101000310, 74011001003100, 840110001031000, 9321000001201000, 94201000012110000
Offset: 1

Views

Author

Marc Morgenegg, Nov 28 2022

Keywords

Comments

The k-th digit must count the k-th nonnegative integer (A001477(k)) appearances in the term.
This sequence is in base b=10. The number of appearances of any integer is always less than b in a term. E.g., the integer '0' can appear at most 9 times in a term.
There are no further terms. This was verified with a computer search of all (permutations of) partitions of d = 1..90 using up to 9 of any digit 0..9 and all (permutations of) "completions" of the remaining d-10 digits consistent with these digit counts. It was verified in each of the two cases for counting appearances: without overlaps (1111 has 2 11's) and with overlaps allowed (1111 has 3 11's). - Michael S. Branicky, Dec 02 2022

Examples

			6401101000310 is a term: we have six 0's, four 1's, zero 2's, one 3, one 4, one 6, three 10's and one 11 as integers in the term, visualized as follows:
  Digits(k): 0 1 2 3 4 5 6 7 8 9 10 11 12 (also the Integers(k))
  term:      6 4 0 1 1 0 1 0 0 0  3  1  0
Note that overlapping integers are counted as well: e.g., 110 is one 11, one 10. 111 is two 11's.
		

Crossrefs

Extensions

a(8) inserted and a(10)-a(15) by Michael S. Branicky, Nov 28 2022

A260387 Numbers n = d_0d_1...d_n (n < 10) such that d_i is the number of digits equal to i in n (base b), where b is less than 10.

Original entry on oeis.org

12, 13, 320, 3201, 72200, 89000, 132110, 345000, 643000, 2320200, 3121300, 10103111, 11300130, 42430000, 51340000, 64030000, 72300000, 86300000, 125102000, 130213000, 211220001, 220101111, 323111000, 431130000, 614110000, 667000000, 2153100000, 2521002000, 3021211100
Offset: 1

Views

Author

Pieter Post, Jul 24 2015

Keywords

Comments

The only terms having the same number of digits as the base are 13, 10103111, 211220001 and 220101111. For example, 13 is 1101_2, which has 1 zero and 3 ones.
The least term with 10 digits that describes itself is 2153100000.
2153100000 is 104233022322_7, so it has 2 zeros, 1 one, 5 twos, 3 threes, 1 four, 0 fives, 0 sixes, 0 sevens, 0 eights and 0 nines in base 7.

Examples

			12 = 110_3, which has 1 zero and 2 ones.
13 = 1101_2, which has 1 zero and 3 ones.
320 = 11000_4, which has 3 zeros, 2 ones and 0 twos.
3201 = 100301_5, which has 3 zeros, 2 ones, 0 twos and 1 three.
72200 = 10200001002_3
89000 = 10101101110101000_2
132110 = 13211420_5
345000 = 122112020210_3
643000 1012200000211_3
42430000 = 2201312320300_4
51340000 = 3003312023200_4
64030000 = 3310100110300_4
72300000 = 122002100000_5
86300000 = 20000101111100022_3
431130000 = 110440340120_6
614110000 = 2224203010000_5
667000000 = 1201111002002222201_3
2153100000 = 104233022322_7
		

Crossrefs

Extensions

a(10)-a(13), a(19)-a(23), a(28)-a(29) added by Giovanni Resta, Jul 26 2015
Showing 1-7 of 7 results.