login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A337861
Numbers that can be written as the sum of two Moran numbers (see A001101).
1
36, 39, 42, 45, 48, 54, 60, 63, 66, 69, 72, 81, 84, 87, 90, 102, 105, 108, 111, 126, 129, 132, 135, 138, 141, 144, 147, 151, 153, 154, 156, 159, 160, 162, 168, 170, 171, 173, 174, 175, 177, 178, 179, 180, 183, 189, 192, 194, 195, 196, 197, 198, 201, 208, 211
OFFSET
1,1
EXAMPLE
36 = 18 + 18 = A001101(1) + A001101(1), so 36 is a term.
39 = 18 + 21 = A001101(1) + A001101(2), so 39 is a term.
87 = 42 + 45 = A001101(4) + A001101(5), so 87 is a term.
MATHEMATICA
m = 211; morans = Select[Range[m], PrimeQ[#/Plus @@ IntegerDigits[#]] &]; Select[Range[m], Length[IntegerPartitions[#, {2}, morans]] > 0 &] (* Amiram Eldar, Oct 21 2020 *)
PROG
(Magma) moran:=func<n|n mod &+Intseq(n) eq 0 and IsPrime( n div &+Intseq(n))>; [n:n in [1..220] | #RestrictedPartitions(n, 2, {k:k in [1..n-1] | moran(k)}) ne 0];
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Marius A. Burtea, Oct 21 2020
STATUS
approved