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.

A118561 Lucky numbers for which the reversal is also a lucky number.

Original entry on oeis.org

1, 3, 7, 9, 13, 15, 31, 33, 37, 51, 73, 99, 111, 115, 133, 141, 151, 163, 169, 171, 189, 193, 195, 303, 327, 331, 339, 361, 385, 391, 393, 399, 511, 529, 535, 537, 579, 583, 591, 717, 723, 727, 729, 735, 739, 777, 787, 925, 927, 933, 937, 961, 975, 979, 981, 993
Offset: 1

Views

Author

Luc Stevens (lms022(AT)yahoo.com), May 07 2006

Keywords

Examples

			133 is in the sequence because (1) it is a lucky number and (2) the reversal 331 is also a lucky number.
		

Crossrefs

Programs

  • Mathematica
    nn = 10^3; t = Range[1, nn, 2]; sieve[n_] := Module[{k = t[[n]]}, t = Delete[t, Table[{i}, {i, k, Length[t], k}]]]; n = 1; While[t[[n]] < Length[t], n++; sieve[n]]; tr = Table[FromDigits[Reverse[IntegerDigits[i]]], {i, t}]; Intersection[t, tr] (* T. D. Noe, Mar 16 2013 *)

Extensions

Corrected and extended by Adam Panagos (adam.panagos(AT)gmail.com), May 10 2006
957 removed by T. D. Noe, Mar 16 2013

A031882 Repdigital lucky numbers.

Original entry on oeis.org

1, 3, 7, 9, 33, 99, 111, 777, 9999, 33333, 55555, 111111, 777777, 7777777, 55555555
Offset: 1

Views

Author

Keywords

Comments

a(16) > 10^8. - Robert G. Wilson v, May 12 2006
a(16) > 10^9. - Luke March, Jul 22 2014

Crossrefs

Intersection of A000959 and A010785.
Subset of A309406.

Programs

  • Mathematica
    lst=Range[1, 10^7, 2]; i = 2; While[lst[[i]]<=Length[lst], del=Partition[Range[lst[[i]], Length[lst], lst[[i]]], 1]; lst=Delete[lst, del]; i++ ]; lst=Select[lst, (Length[Union[IntegerDigits[ # ]]]==1)&] (* Robert G. Wilson v, May 12 2006 *)

Extensions

Two more terms from Vit Planocka (planocka(AT)mistral.cz), Feb 01 2003
a(15) from Robert G. Wilson v, May 12 2006
Showing 1-2 of 2 results.