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.

A166024 Define dsf(n) = A045503(n) = n_1^{n_1}+n_2^{n_2}+n_3^{n_3} + n_m^{n_m}, where {n_1,n_2,n_3,...n_m} is the list of the decimal digits of n. Starting with a(1) = 421845123, a(n+1) = dsf(a(n)).

Original entry on oeis.org

421845123, 16780890, 421845123, 16780890, 421845123, 16780890, 421845123, 16780890, 421845123, 16780890, 421845123, 16780890, 421845123, 16780890, 421845123, 16780890, 421845123, 16780890, 421845123, 16780890, 421845123, 16780890, 421845123, 16780890
Offset: 1

Views

Author

Ryohei Miyadera, Satoshi Hashiba and Koichiro Nishimura, Oct 04 2009

Keywords

Comments

In fact there are only 8 loops among all the nonnegative integers for the "dsf" function that we defined.
Periodic with period 2.

Examples

			dsf(421845123) = 16780890 and dsf(16780890) = 421845123, so these 2 numbers make a loop for the function dsf.
		

Crossrefs

Programs

  • Mathematica
    dsf[n_] := Block[{m = n, t}, t = IntegerDigits[m]; Sum[Max[1, t[[k]]]^t[[k]], {k, Length[t]}]]; NestList[dsf, 421845123,4]
    LinearRecurrence[{0, 1},{421845123, 16780890},24] (* Ray Chandler, Aug 25 2015 *)

Formula

a(n+1) = dsf(a(n)).

Extensions

Comment and editing by Charles R Greathouse IV, Aug 02 2010
Second sentence of Name moved to Example by Michael De Vlieger, Aug 24 2023