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.

Previous Showing 41-41 of 41 results.

A119909 Numbers n such that n and n^2 written in base 3 are zero-free.

Original entry on oeis.org

1, 2, 4, 5, 7, 22, 43, 131, 394
Offset: 1

Views

Author

Zak Seidov, May 28 2006

Keywords

Comments

No more terms < 3^20. - Joshua Zucker, Jun 05 2006

Examples

			n: 1, 2, 4, 5, 7, 22, 43, 131, 394
n^2: 1, 4, 16, 25, 49, 484, 1849, 17161, 155236
n written in base 3: 1, 2, 11, 12, 21, 211, 1121, 11212, 112121
n^2 written in base 3: 1,11,121,221,1211,122221,2112111,212112121,21212221111
		

Crossrefs

Subsequence of A032924.

Programs

  • Mathematica
    Select[Range[500],DigitCount[#,3,0]==DigitCount[#^2,3,0]==0&] (* Harvey P. Dale, Feb 06 2015 *)
  • PARI
    isok(n) = vecmin(digits(n, 3)) && vecmin(digits(n^2, 3)); \\ Michel Marcus, Oct 10 2013
Previous Showing 41-41 of 41 results.