A214124 Indices of consecutive maxima in A214123.
2, 5, 8, 17, 20, 60, 160, 228, 318, 362, 522, 1638, 1692, 1998, 2054, 3834, 5208, 21210, 62810, 152352, 170168, 424784
Offset: 1
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.
a(5) = 13 because the prime 13 = 23_5 with 2 + 3 = 5, and no smaller prime works.
f:= proc(n) local k,v,x; for k from 1 do v:= convert(convert(k,base,n),`+`); if v > n then next fi; x:= n*k+(n-v); if isprime(x) then return x fi od end proc: map(f, [$2..100]);
a[n_]:=Module[{k=1}, While[DigitSum[Prime[k],n]!=n, k++]; Prime[k]]; Array[a,67,2] (* Stefano Spezia, Jan 04 2025 *)
Comments