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

A057946 Bad hexadecimal notation for n: write n in hexadecimal notation, replacing digit ten with "10", digit eleven with "11", ... and digit fifteen with "15".

Original entry on oeis.org

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 110, 111, 112, 113, 114, 115, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 210, 211, 212, 213, 214, 215, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 310, 311, 312, 313, 314, 315, 40, 41
Offset: 0

Views

Author

Henry Bottomley, Oct 13 2000

Keywords

Examples

			a(15)=15 since it is represented by the digit "15" base 16. a(21)=15 since it is represented by the digit "1" followed by the digit "5" base 16.
		

Crossrefs

Cf. A057947 for ambiguous numbers, A055645 for a better representation of hexadecimal.

Programs

  • Maple
    a:= proc(n) local i, m, r ; m:=n; r:=NULL;
          if n=0 then return 0 fi;
          for i from 0 while m>0 do
            r:= irem(m, 16, 'm'), r
          od; parse(cat(r))
        end:
    seq(a(n), n=0..80);  # Alois P. Heinz, Jun 23 2014
  • Mathematica
    f[n_] := FromDigits@ Flatten@ IntegerDigits@ IntegerDigits[n, 16]; Array[f, 66, 0] (* Robert G. Wilson v, Jun 23 2014 *)

A228774 Numbers n such that the digits of n, once written in base 16, are only the hexadecimal digits A to F.

Original entry on oeis.org

10, 11, 12, 13, 14, 15, 170, 171, 172, 173, 174, 175, 186, 187, 188, 189, 190, 191, 202, 203, 204, 205, 206, 207, 218, 219, 220, 221, 222, 223, 234, 235, 236, 237, 238, 239, 250, 251, 252, 253, 254, 255, 2730, 2731, 2732, 2733, 2734, 2735, 2746, 2747, 2748
Offset: 0

Views

Author

Jean-François Alcover, Sep 04 2013

Keywords

Examples

			2989 is BAD in base 16.
		

Crossrefs

Programs

  • Mathematica
    FromDigits[#, 16]& /@ Flatten[Table[Tuples[Range[10, 15], k], {k, 1, 3}], 1]
    Select[Range[3000], Min[IntegerDigits[#, 16]] > 9 &] (* T. D. Noe, Sep 04 2013 *)
  • PARI
    a(n)=my(d);while(n>=6^(d+1),n-=6^d++);sum(i=0,d,((n\6^i)%6+10)<<(4*i)) \\ Charles R Greathouse IV, Sep 04 2013
Showing 1-2 of 2 results.