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.

A033819 Trimorphic numbers: n^3 ends with n. Also m-morphic numbers for all m > 5 such that m-1 is not divisible by 10 and m == 3 (mod 4).

Original entry on oeis.org

0, 1, 4, 5, 6, 9, 24, 25, 49, 51, 75, 76, 99, 125, 249, 251, 375, 376, 499, 501, 624, 625, 749, 751, 875, 999, 1249, 3751, 4375, 4999, 5001, 5625, 6249, 8751, 9375, 9376, 9999, 18751, 31249, 40625, 49999, 50001, 59375, 68751, 81249, 90624, 90625
Offset: 1

Views

Author

Keywords

Comments

n is in this sequence iff it occurs in one of A002283, A007185, A016090, A198971, A199685, A216092, A216093, A224473, A224474, A224475, A224476, A224477, and A224478. - Eric M. Schmidt, Apr 08 2013
Let q(n) = floor(a(n)^3 / 10^A055642(a(n))), where A055642(n) is the number of digits in the decimal expansion of n. As well, let na and nb denote the indices of the preceding and next terms that begin with a 9. Then (1/q(n)) * (a(n)^4 - a(n)^3 - a(n)^2 + a(n)) - 2*a(n)^2 + a(n) + q(n) + 1 = a(na+nb-n)^2 - a(na+nb-n) - q(na+nb-n). - Christopher Hohl, Apr 08 2019

Examples

			376^3 = 53157376 which ends with 376.
		

References

  • S. Premchaud, A class of numbers, Math. Student, 48 (1980), 293-300.

Crossrefs

Cf. A074194, A215558 (cubes of the terms).

Programs

  • Magma
    [n: n in [0..10^5] | Intseq(n^3)[1..#Intseq(n)] eq Intseq(n)]; // Bruno Berselli, Apr 04 2013
  • Mathematica
    Do[x=Floor[N[Log[10, n], 25]]+1; If[Mod[n^3, 10^x] == n, Print[n]], {n, 1, 10000}]
    Select[Range[100000],PowerMod[#,3,10^IntegerLength[#]]==#&](* Harvey P. Dale, Nov 04 2011 *)
    Select[Range[0, 10^5], 10^IntegerExponent[#^3-#, 10]>#&] (* Jean-François Alcover, Apr 04 2013 *)

A224478 (16^(5^n) + (10^n)/2 - 1) mod 10^n: a sequence of trimorphic numbers ending (for n > 1) in 5.

Original entry on oeis.org

0, 25, 875, 4375, 59375, 609375, 2109375, 37109375, 287109375, 6787109375, 31787109375, 581787109375, 5081787109375, 90081787109375, 240081787109375, 8740081787109375, 93740081787109375, 243740081787109375, 2743740081787109375, 57743740081787109375
Offset: 1

Views

Author

Eric M. Schmidt, Apr 07 2013

Keywords

Comments

a(n) is the unique nonnegative integer less than 10^n such that a(n) + 2^(n-1) + 1 is divisible by 2^n and a(n) is divisible by 5^n.

Crossrefs

Cf. A033819. Converges to the 10-adic number A091663. The other trimorphic numbers ending in 5 are included in A007185, A216093, and A224477.

Programs

  • Sage
    def A224478(n) : return crt(2^(n-1)-1, 0, 2^n, 5^n)

Formula

a(n) = (A016090(n) + 10^n/2 - 1) mod 10^n.
Showing 1-2 of 2 results.