OFFSET
1,2
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..10000 (terms 1..100 from Zhining Yang)
EXAMPLE
3^3 = 27, so a(3) = 44 because the digit string "27" first occurs beginning at the 44th digit of the string
s = "12345678910111213141516171819202122232425262728...":
.
. 1 2 3 4
Position: 12345678901234567890123456789012345678901234567...
vv
s: 12345678910111213141516171819202122232425262728...
^^
MATHEMATICA
T = StringJoin @@ ToString /@ Range@ 700000; Table[StringPosition[T, ToString[ n^3], 1][[1, 1]], {n, 50}] (* Giovanni Resta, Aug 11 2017 *)
PROG
(VBA)
Sub test()
Dim i&, t$, s$(1 To 125000)
For i = 1 To 125000
s(i) = i
Next
t = Join(s, "")
For i = 1 To 50
Debug.Print InStr(t, i ^ 3); ", ";
Next
End Sub
CROSSREFS
KEYWORD
AUTHOR
Zhining Yang, Aug 10 2017
STATUS
approved