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-10 of 15 results. Next

A007931 Numbers that contain only 1's and 2's. Nonempty binary strings of length n in lexicographic order.

Original entry on oeis.org

1, 2, 11, 12, 21, 22, 111, 112, 121, 122, 211, 212, 221, 222, 1111, 1112, 1121, 1122, 1211, 1212, 1221, 1222, 2111, 2112, 2121, 2122, 2211, 2212, 2221, 2222, 11111, 11112, 11121, 11122, 11211, 11212, 11221, 11222, 12111, 12112, 12121, 12122
Offset: 1

Views

Author

R. Muller

Keywords

Comments

Numbers written in the dyadic system [Smullyan, Stillwell]. - N. J. A. Sloane, Feb 13 2019
Logic-binary sequence: prefix it by the empty word to have all binary words on the alphabet {1,2}.
The least binary word of length k is a(2^k - 1).
See Mathematica program for logic-binary sequence using (0,1) in place of (1,2); the sequence starts with 0,1,00,01,10. - Clark Kimberling, Feb 09 2012
A007953(a(n)) = A014701(n+1); A007954(a(n)) = A048896(n). - Reinhard Zumkeller, Oct 26 2012
a(n) is n written in base 2 where zeros are not allowed but twos are. The two distinct digits used are 1, 2 instead of 0, 1. To obtain this sequence from the "canonical" base 2 sequence with zeros allowed, just replace any 0 with a 2 and then subtract one from the group of digits situated on the left: (10-->2; 100-->12; 110-->22; 1000-->112; 1010-->122). - Robin Garcia, Jan 31 2014
For numbers made of only two different digits, see also A007088 (digits 0 & 1), A032810 (digits 2 & 3), A032834 (digits 3 & 4), A256290 (digits 4 & 5), A256291 (digits 5 & 6), A256292 (digits 6 & 7), A256340(digits 7 & 8), A256341 (digits 8 & 9), and A032804-A032816 (in other bases). Numbers with exactly two distinct (but unspecified) digits in base 10 are listed in A031955, for other bases in A031948-A031954. - M. F. Hasler, Apr 04 2015
The variant with digits {0, 1} instead of {1, 2} is obtained by deleting all initial digits in sequence A007088 (numbers written in base 2). - M. F. Hasler, Nov 03 2020

Examples

			Positive numbers may not start with 0 in the OEIS, otherwise this sequence would have been written as: 0, 1, 00, 01, 10, 11, 000, 001, 010, 011, 100, 101, 110, 111, 0000, 0001, 0010, 0011, 0100, 0101, 0110, 0111, 1000, 1001, 1010, 1011, 1100, 1101, 1110, 1111, 00000, 00001, 00010, 00011, 00100, 00101, 00110, 00111, 01000, 01001, 01010, 01011, ...
From _Hieronymus Fischer_, Jun 06 2012: (Start)
a(10)   = 122.
a(100)  = 211212.
a(10^3) = 222212112.
a(10^4) = 1122211121112.
a(10^5) = 2111122121211112.
a(10^6) = 2221211112112111112.
a(10^7) = 11221112112122121111112.
a(10^8) = 12222212122221111211111112.
a(10^9) = 22122211221212211212111111112. (End)
		

References

  • J.-P. Allouche and J. Shallit, Automatic Sequences, Cambridge Univ. Press, 2003, p. 2. - From N. J. A. Sloane, Jul 26 2012
  • K. Atanassov, On the 97th, 98th and the 99th Smarandache Problems, Notes on Number Theory and Discrete Mathematics, Sophia, Bulgaria, Vol. 5 (1999), No. 3, 89-93.
  • R. M. Smullyan, Theory of Formal Systems, Princeton, 1961.
  • John Stillwell, Reverse Mathematics, Princeton, 2018. See p. 90.

Crossrefs

Cf. A007932 (digits 1-3), A059893, A045670, A052382 (digits 1-9), A059939, A059941, A059943, A032924, A084544, A084545, A046034 (prime digits 2,3,5,7), A089581, A084984 (no prime digits); A001742, A001743, A001744: loops; A202267 (digits 0, 1 and primes), A202268 (digits 1,4,6,8,9), A014261 (odd digits), A014263 (even digits).
Cf. A007088 (digits 0 & 1), A032810 (digits 2 & 3), A032834 (digits 3 & 4), A256290 (digits 4 & 5), A256291 (digits 5 & 6), A256292 (digits 6 & 7), A256340 (digits 7 & 8), A256341 (digits 8 & 9), and A032804-A032816 (in other bases).
Cf. A020450 (primes).

Programs

  • Haskell
    a007931 n = f (n + 1) where
       f x = if x < 2 then 0 else (10 * f x') + m + 1
         where (x', m) = divMod x 2
    -- Reinhard Zumkeller, Oct 26 2012
    
  • Magma
    [n: n in [1..100000] | Set(Intseq(n)) subset {1,2}]; // Vincenzo Librandi, Aug 19 2016
    
  • Maple
    # Maple program to produce the sequence:
    a:= proc(n) local m, r, d; m, r:= n, 0;
          while m>0 do d:= irem(m, 2, 'm');
            if d=0 then d:=2; m:= m-1 fi;
            r:= d, r
          od; parse(cat(r))/10
        end:
    seq(a(n), n=1..100);  # Alois P. Heinz, Aug 26 2016
    # Maple program to invert this sequence: given a(n), it returns n. - N. J. A. Sloane, Jul 09 2012
    invert7931:=proc(u)
    local t1,t2,i;
    t1:=convert(u,base,10);
    [seq(t1[i]-1,i=1..nops(t1))];
    [op(%),1];
    t2:=convert(%,base,2,10);
    add(t2[i]*10^(i-1),i=1..nops(t2))-1;
    end;
  • Mathematica
    f[n_] := FromDigits[Rest@IntegerDigits[n + 1, 2] + 1]; Array[f, 42] (* Robert G. Wilson v Sep 14 2006 *)
    (* Next, A007931 using (0,1) instead of (1,2) *)
    d[n_] := FromDigits[Rest@IntegerDigits[n + 1, 2] + 1]; Array[FromCharacterCode[ToCharacterCode[ToString[d[#]]] - 1] &, 100] (* Peter J. C. Moses, at request of Clark Kimberling, Feb 09 2012 *)
    Flatten[Table[FromDigits/@Tuples[{1,2},n],{n,5}]] (* Harvey P. Dale, Sep 13 2014 *)
  • PARI
    apply( {A007931(n)=fromdigits([d+1|d<-binary(n+1)[^1]])}, [1..44]) \\ M. F. Hasler, Nov 03 2020, replacing older code from Mar 26 2015
    
  • PARI
    /* inverse function */ apply( {A007931_inv(N)=fromdigits([d-1|d<-digits(N)],2)+2<M. F. Hasler, Nov 09 2020
    
  • Python
    def a(n): return int(bin(n+1)[3:].replace('1', '2').replace('0', '1'))
    print([a(n) for n in range(1, 45)]) # Michael S. Branicky, May 13 2021
    
  • Python
    def A007931(n): return int(s:=bin(n+1)[3:])+(10**(len(s))-1)//9 # Chai Wah Wu, Jun 13 2025

Formula

To get a(n), write n+1 in base 2, remove initial 1, add 1 to all remaining digits: e.g., eleven (11) in base 2 is 1011; remove initial 1 and add 1 to remaining digits: a(10)=122. - Clark Kimberling, Mar 11 2003
Conversely, given a(n), to get n: subtract 1 from all digits, prefix with an initial 1, convert this binary number to base 10, subtract 1. E.g., a(6)=22 -> 11 -> 111 -> 7 -> 6. - N. J. A. Sloane, Jul 09 2012
a(n) = A053645(n+1)+A002275(A000523(n)) = a(n-2^b(n))+10^b(n) where b(n) = A059939(n) = floor(log_2(n+1)-1). - Henry Bottomley, Feb 14 2001
From Hieronymus Fischer, Jun 06 2012 and Jun 08 2012: (Start)
The formulas are designed to calculate base-10 numbers only using the digits 1 and 2.
a(n) = Sum_{j=0..m-1} (1 + b(j) mod 2)*10^j, where m = floor(log_2(n+1)), b(j) = floor((n+1-2^m)/(2^j)).
Special values:
a(k*(2^n-1)) = k*(10^n-1)/9, k= 1,2.
a(3*2^n-2) = (11*10^n-2)/9 = 10^n+2*(10^n-1)/9.
a(2^n-2) = 2*(10^(n-1)-1)/9, n>1.
Inequalities:
a(n) <= (10^log_2(n+1)-1)/9, equality holds for n=2^k-1, k>0.
a(n) > (2/10)*(10^log_2(n+1)-1)/9.
Lower and upper limits:
lim inf a(n)/10^log_2(n) = 1/45, for n --> infinity.
lim sup a(n)/10^log_2(n) = 1/9, for n --> infinity.
G.f.: g(x) = (1/(x(1-x)))*sum_{j=0..infinity} 10^j* x^(2*2^j)*(1 + 2 x^2^j)/(1 + x^2^j).
Also: g(x) = (1/(1-x))*(h_(2,0)(x) + h_(2,1)(x) - 2*h_(2,2)(x)), where h_(2,k)(x) = sum_{j>=0} 10^j*x^(2^(j+1)-1)*x^(k*2^j)/(1-x^2^(j+1)).
Also: g(x) = (1/(1-x)) sum_{j>=0} (1 - 3(x^2^j)^2 + 2(x^2^j)^3)*x^2^j*f_j(x)/(1-x^2^j), where f_j(x) = 10^j*x^(2^j-1)/(1-(x^2^j)^2). The f_j obey the recurrence f_0(x) = 1/(1-x^2), f_(j+1)(x) = 10x*f_j(x^2). (End)

Extensions

Some crossrefs added by Hieronymus Fischer, Jun 06 2012
Edited by M. F. Hasler, Mar 26 2015

A029742 Nonpalindromic numbers.

Original entry on oeis.org

10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 100, 102, 103, 104, 105, 106, 107
Offset: 1

Views

Author

Keywords

Comments

Complement of A002113; A136522(a(n)) = 0.
A064834(a(n)) > 0. - Reinhard Zumkeller, Sep 18 2013

Crossrefs

Cf. A002113. Different from A031955.

Programs

  • Haskell
    a029742 n = a029742_list !! (n-1)
    a029742_list = filter ((== 0) . a136522) [1..]
    -- Reinhard Zumkeller, Oct 09 2011
    
  • Magma
    [n: n in [0..150] | Intseq(n) ne Reverse(Intseq(n))]; // Bruno Berselli, Apr 01 2015
    
  • Mathematica
    palQ[n_]:=Module[{idn=IntegerDigits[n]},idn==Reverse[idn]]; DeleteCases[ Range[10,110],?palQ] (* _Harvey P. Dale, Jan 28 2012 *)
    Table[If[PalindromeQ[n],Nothing,n],{n,120}] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Jul 13 2019 *)
  • PARI
    is(n)=my(d=digits(n)); d!=Vecrev(d) \\ Charles R Greathouse IV, Feb 06 2017
    
  • Python
    def ok(n): s = str(n); return s != s[::-1]
    print(list(filter(ok, range(108)))) # Michael S. Branicky, Oct 12 2021
    
  • Python
    def A029742(n):
        def f(x): return n+x//10**((l:=len(s:=str(x)))-(k:=l+1>>1))-(int(s[k-1::-1])>x%10**k)+10**(k-1+(l&1^1))-1
        m, k = n, f(n)
        while m != k:
            m, k = k, f(k)
        return m # Chai Wah Wu, Jul 24 2024

Extensions

Offset corrected by Reinhard Zumkeller, Oct 09 2011

A101594 Numbers with exactly two distinct decimal digits, neither of which is 0.

Original entry on oeis.org

12, 13, 14, 15, 16, 17, 18, 19, 21, 23, 24, 25, 26, 27, 28, 29, 31, 32, 34, 35, 36, 37, 38, 39, 41, 42, 43, 45, 46, 47, 48, 49, 51, 52, 53, 54, 56, 57, 58, 59, 61, 62, 63, 64, 65, 67, 68, 69, 71, 72, 73, 74, 75, 76, 78, 79, 81, 82, 83, 84, 85, 86, 87, 89, 91, 92, 93, 94, 95, 96, 97, 98, 112, 113, 114, 115, 116, 117, 118, 119, 121, 122, 131
Offset: 1

Views

Author

David Wasserman, Dec 07 2004

Keywords

Comments

First differs from A125290 at a(83) = 131 != 123 = A101594(83). - Michael S. Branicky, Dec 13 2021

Crossrefs

Programs

  • Haskell
    a101594 n = a101594_list !! (n-1)
    a101594_list = filter ((== 2) . a043537) a052382_list
    -- Reinhard Zumkeller, Jun 18 2013
    
  • Mathematica
    Select[Range[200], FreeQ[#, 0] && Length[Union[#]] == 2 & [IntegerDigits[#]] &] (* Paolo Xausa, May 06 2024 *)
  • Python
    def ok(n): s = set(str(n)); return len(s) == 2 and "0" not in s
    print([k for k in range(132) if ok(k)]) # Michael S. Branicky, Dec 13 2021

Formula

A168046(a(n)) * A043537(A004719(a(n))) = 2. - Reinhard Zumkeller, Jun 18 2013

A210666 Numbers with at least three digits in which all digits but one are the same.

Original entry on oeis.org

100, 101, 110, 112, 113, 114, 115, 116, 117, 118, 119, 121, 122, 131, 133, 141, 144, 151, 155, 161, 166, 171, 177, 181, 188, 191, 199, 200, 202, 211, 212, 220, 221, 223, 224, 225, 226, 227, 228, 229, 232, 233, 242, 244, 252, 255, 262, 266, 272, 277, 282, 288
Offset: 1

Views

Author

Arkadiusz Wesolowski, May 08 2012

Keywords

Comments

Each k-digit term has k-1 appearances of a digit, d1, and 1 appearance of a different digit, d2, and k-1 >= 2 so that d1 is repeated. Specifically, the 2-digit terms of A010784 are not terms here. - Michael S. Branicky, May 22 2022
a(n) = A031955(n+81) for n <= 244.
For n <= 243, i.e., the 3-digit terms, a(n) = A218556(n+10). - M. F. Hasler, Nov 02 2012

Crossrefs

Subsequence of A031955. Supersequence of A164937.

Programs

  • Mathematica
    lst = {}; Do[If[SortBy[Tally[IntegerDigits[n]], Last][[-1, -1]] == IntegerLength[n] - 1, AppendTo[lst, n]], {n, 100, 288}]; lst
    lst = {}; Do[r = Table[a, {n}]; Do[c = FromDigits@Permutations[Join[{d}, r]]; If[d == 0, c = Rest[c]]; AppendTo[lst, c], {d, 0, 9}], {a, 0, 9}, {n, 2, 2}]; Drop[Union@Flatten[lst], 19]
    nrepQ[n_] := Module[{dg = Select[DigitCount[n], # > 0 &]}, Length[dg] == 2 && Min[dg] == 1 && Max[dg] > 1]; Select[Range[300], nrepQ] (* Harvey P. Dale, Nov 20 2012 *)
  • Python
    from itertools import count, islice
    def agen(): # generator of terms
        for d in count(3):
            dterms = set()
            for most in "123456789":
                dterms.add(int(most + "0"*(d-1)))
                for diff in "0123456789":
                    if most == diff: continue
                    cands = (most*i + diff + most*(d-1-i) for i in range(d))
                    dterms.update(int(t) for t in cands if t[0] != "0")
            yield from sorted(dterms)
    print(list(islice(agen(), 52))) # Michael S. Branicky, May 17 2022

A335843 a(n) is the number of n-digit positive integers with exactly two distinct base 10 digits.

Original entry on oeis.org

0, 81, 243, 567, 1215, 2511, 5103, 10287, 20655, 41391, 82863, 165807, 331695, 663471, 1327023, 2654127, 5308335, 10616751, 21233583, 42467247, 84934575, 169869231, 339738543, 679477167, 1358954415, 2717908911, 5435817903, 10871635887, 21743271855, 43486543791
Offset: 1

Views

Author

Stefano Spezia, Jul 18 2020

Keywords

Comments

a(n) is the number of n-digit numbers in A031955.

Examples

			a(1) = 0 since the positive integers must have at least two digits;
a(2) = 81 since #[99] - #[9] - #(11*[9]) = 99 - 9 - 9 = 81;
a(3) = 243 since #[999] - #[99] - #(111*[9]) - #{xyz in N | x,y,z are three different digits with x != 0} = 999 - 99 - 9 - 9*9*8 = 243;
...
		

Crossrefs

Programs

  • Mathematica
    LinearRecurrence[{3,-2},{0,81},31]
  • PARI
    concat([0],Vec(81*x^2/(1-3*x+2*x^2)+O(x^31)))

Formula

O.g.f.: 81*x^2/(1 - 3*x + 2*x^2).
E.g.f.: 81*(exp(x) - 1)^2/2.
a(n) = 3*a(n-1) - 2*a(n-2) for n > 2.
a(n) = 81*(2^(n-1) - 1).
a(n) = 81*A000225(n-1).

Extensions

a(0) removed by Stefano Spezia, Sep 23 2020

A206159 Numbers needing at most two digits to write all positive divisors in decimal representation.

Original entry on oeis.org

1, 2, 3, 5, 7, 11, 13, 17, 19, 22, 31, 33, 41, 55, 61, 71, 77, 101, 113, 121, 131, 151, 181, 191, 199, 211, 311, 313, 331, 661, 811, 881, 911, 919, 991, 1111, 1117, 1151, 1171, 1181, 1511, 1777, 1811, 1999, 2111, 2221, 3313, 3331, 4111, 4441, 6661, 7177, 7717, 8111, 9199, 10111, 11113
Offset: 1

Views

Author

Reinhard Zumkeller, Feb 05 2012

Keywords

Comments

The terms of A203897 having all divisors in A020449 (in particular, the first 1022 terms) are a subsequence. - M. F. Hasler, May 02 2022
Since 1 and the term itself are divisors, one must only check repdigits and those containing only 1 and another digit. - Michael S. Branicky, May 02 2022

Crossrefs

Cf. A203897 (an "almost subsequence"), A020449 (primes with only digits 0 & 1), A095048 (number of distinct digits in divisors(n)).

Programs

  • Mathematica
    Select[Range[12000],Length[Union[Flatten[IntegerDigits/@Divisors[#]]]]<3&] (* Harvey P. Dale, May 03 2022 *)
  • PARI
    select( {is_A206159(n)=#Set(concat([digits(d)|d<-divisors(n)]))<3}, [1..10^4]) \\ M. F. Hasler, May 02 2022
  • Python
    from sympy import divisors
    def ok(n):
        digits_used = set()
        for d in divisors(n, generator=True):
            digits_used |= set(str(d))
            if len(digits_used) > 2: return False
        return True
    print([k for k in range(1, 9000) if ok(k)]) # Michael S. Branicky, May 02 2022
    

Formula

A095048(a(n)) <= 2.

Extensions

Terms corrected by Harvey P. Dale, May 02 2022
Edited by N. J. A. Sloane, May 02 2022

A219743 Number for which the number of distinct base 10 digits is 8.

Original entry on oeis.org

10234567, 10234568, 10234569, 10234576, 10234578, 10234579, 10234586, 10234587, 10234589, 10234596, 10234597, 10234598, 10234657, 10234658, 10234659, 10234675, 10234678, 10234679, 10234685, 10234687, 10234689, 10234695, 10234697, 10234698
Offset: 1

Views

Author

Jonathan Vos Post, Dec 05 2012

Keywords

Crossrefs

Cf. A010785 (1 digits), A031955 (2 digits), A031962 (3 digits), A031969 (4 digits), A031987 (5 digits), A220076 (6 digits), A218019 (7 digits), A116670 (9 digits), A171102 (10 digits).

Programs

  • Mathematica
    Select[Range[10^7, 10^7 + 1000000], Length[Union[IntegerDigits[#]]] == 8 &] (* T. D. Noe, Dec 05 2012 *)

Extensions

Corrected and extended by T. D. Noe, Dec 05 2012

A056730 Palindromic primes with just two distinct digits.

Original entry on oeis.org

101, 131, 151, 181, 191, 313, 353, 373, 383, 727, 757, 787, 797, 919, 929, 11311, 11411, 13331, 15551, 16661, 18181, 19991, 32323, 33533, 35353, 72227, 72727, 74747, 75557, 76667, 77377, 77477, 77977, 78787, 78887, 79997, 94949, 95959
Offset: 1

Views

Author

Robert G. Wilson v, Aug 11 2000

Keywords

Crossrefs

Intersection of A002385 and A031955.

Programs

  • Maple
    f:= proc(d) local d1,d2,L,cand,C1,C2,C3,a,b,n,Cands;
        Cands:= NULL;
        d1:= (d+1)/2;
        d2:= d-d1;
        for b in [1,3,7,9] do
          for a in {$0..9} minus {b} do
            for n from 2^(d1-1) to 2^d1-2 do
              L:= convert(n,base,2);
              C1:= a*(10^d-1)/9;
              C2:= (b-a)*add(L[i]*10^(i+d2-1),i=1..d1);
              C3:= (b-a)*add(L[i]*10^(d1-i),i=2..d1);
              cand:= C1+C2+C3;
              if isprime(cand) then Cands:= Cands, cand; fi
        od od od;
        sort([Cands])
    end proc:
    map(op, [seq(f(d),d=3..7,2)]); # Robert Israel, Sep 09 2018
  • Mathematica
    Select[ Range[ 1, 3 10^6, 2 ], PrimeQ[ # ] && Length[ Union[ RealDigits[ # ][ [ 1 ] ] ] ] == 2 && RealDigits[ # ][ [ 1 ] ] == Reverse[ RealDigits[ # ][ [ 1 ] ] ] & ]

A337127 Table with 10 columns read by rows: T(n, k) is the number of n-digit positive integers with exactly k distinct base 10 digits (0 < k <= 10).

Original entry on oeis.org

9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 81, 0, 0, 0, 0, 0, 0, 0, 0, 9, 243, 648, 0, 0, 0, 0, 0, 0, 0, 9, 567, 3888, 4536, 0, 0, 0, 0, 0, 0, 9, 1215, 16200, 45360, 27216, 0, 0, 0, 0, 0, 9, 2511, 58320, 294840, 408240, 136080, 0, 0, 0, 0, 9, 5103, 195048, 1587600, 3810240, 2857680, 544320, 0, 0, 0
Offset: 1

Views

Author

Stefano Spezia, Aug 17 2020

Keywords

Examples

			The table T(n, k) begins:
9     0      0       0       0       0  0  0  0  0
9    81      0       0       0       0  0  0  0  0
9   243    648       0       0       0  0  0  0  0
9   567   3888    4536       0       0  0  0  0  0
9  1215  16200   45360   27216       0  0  0  0  0
9  2511  58320  294840  408240  136080  0  0  0  0
...
		

Crossrefs

Cf. A010734, A048993, A052268 (row sums), A073531 (diagonal), A180599 (k = 1), A335843 (k = 2), A337313 (k = 3).

Programs

  • Mathematica
    T[n_,k_]:=9Pochhammer[11-k,k-1]/k!*n!*Coefficient[Series[(Exp[x]-1)^k,{x,0,n}],x,n]; Table[T[n,k],{n,7},{k,10}]//Flatten

Formula

T(n, k) = 9*Pochhammer(11-k, k-1)*n! * [x^n] (exp(x) - 1)^k/k!.
T(n, k) = 9*Pochhammer(11-k, k-1) * [x^n] x^k/Product_{j=1..k} (1-j*x).
T(n, k) = 9*Pochhammer(11-k, k-1)*S2(n, k) where S2(n, k) = A048993(n, k) are the Stirling numbers of the 2nd kind.

A031951 Numbers with exactly two distinct base-6 digits.

Original entry on oeis.org

6, 8, 9, 10, 11, 12, 13, 15, 16, 17, 18, 19, 20, 22, 23, 24, 25, 26, 27, 29, 30, 31, 32, 33, 34, 36, 37, 42, 44, 45, 46, 47, 49, 50, 55, 57, 61, 64, 67, 71, 72, 74, 79, 80, 84, 85, 87, 88, 89, 92, 93, 98, 100, 104, 107, 108, 111, 115, 117
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

  • Maple
    M:= 6: # get all terms < 6^M
    sort([seq(seq(seq(seq(add(6^(m-j)*`if`(member(j,S2),d2,d1),j=1..m)  ,
    S2 = combinat:-powerset({$2..m}) minus {{}}),
    d2 = {$0..5} minus {d1}), d1 = 1..5), m=2..M)]);# Robert Israel, Dec 03 2015
  • Mathematica
    fQ[n_] := Length@ Union@ IntegerDigits[n, 6] == 2; Select[Range@117, fQ] (* Robert G. Wilson v, Dec 03 2015 *)
Showing 1-10 of 15 results. Next