OFFSET
1,1
LINKS
Metin Sariyar, Table of n, a(n) for n = 1..10000
D. Applegate, M. LeBrun and N. J. A. Sloane, Dismal Arithmetic, Journal of Integer Sequences, Vol. 14 (2011), Article 11.9.8. [Note: we have now changed the name from "dismal arithmetic" to "lunar arithmetic" - the old name was too depressing]
Caldwell and Honaker, Prime Curio for 58.
FORMULA
EXAMPLE
a(16)=22 because the 16th semiprime is 46 = 2*23. In lunar arithmetic the product becomes 22.
MATHEMATICA
ladd[x_, y_] := FromDigits[MapThread[Max, IntegerDigits[#, 10, Max@ IntegerLength [{x, y}]] & /@ {x, y}]]; lmult[x_, y_] := Fold[ladd, 0, Table[10^i, {i, IntegerLength[y] - 1, 0, -1}]*FromDigits /@ Transpose@Partition[Min[##] & @@@ Tuples[IntegerDigits[{x, y}]], IntegerLength[y]]]; s={}; Do[If[PrimeOmega[n]==2, f=FactorInteger[n]; x=f[[1, 1]]; y=n/x; m=lmult[x, y]; AppendTo[s, m]], {n, 1, 300}]; s (* Amiram Eldar, Nov 19 2018 after Davin Park at A087062 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
G. L. Honaker, Jr., Nov 18 2018
STATUS
approved