Thursday, June 19, 2025

The one-millionth term of OEIS sequence A157711

I wrote my A157711 essay on May 12. It included a link to 311537 terms of the sequence, the final one composed of 1002 decimal digits. What, I wondered, is the one-millionth term?

When I created A383675 (the number of n-digit terms in A157711), I realized that the total of its first n terms is the index in A157711 of the largest n-digit term. The total of the first 1002 terms is 311537 (see above).

I am actively extending the 1200-term b-file that I have at A383675 to (hopefully, eventually) 2500 terms. As I was nearing the 1800th term, I noticed that the total of my first n terms was approaching 1000000. Specifically, the sum of the first 1793 terms was 999864; that of 1794 terms, 1000778. This suggested that the one-millionth term of A157711 was #136 of the 914 1794-digit primes, assuming of course that they were listed in strictly ascending order.

In my program, I wasn't actually listing these primes, just counting them. So I rewrote the procedure to list them (not in decimal but as the sum of four powers of ten; 1 = 10^0):

 999865 10^1793+10^9+10^1+1
 999866 10^1793+10^42+10^34+1
 999867 10^1793+10^46+10^12+1
 999868 10^1793+10^78+10^52+1
 999869 10^1793+10^82+10^2+1
 999870 10^1793+10^109+10^27+1
 999871 10^1793+10^132+10^16+1
 999872 10^1793+10^135+10^73+1
 999873 10^1793+10^144+10^86+1
 999874 10^1793+10^154+10^150+1
 999875 10^1793+10^172+10^152+1
 999876 10^1793+10^180+10^46+1
 999877 10^1793+10^188+10^176+1
 999878 10^1793+10^192+10^16+1
 999879 10^1793+10^195+10^163+1
 999880 10^1793+10^207+10^175+1
 999881 10^1793+10^212+10^188+1
 999882 10^1793+10^222+10^16+1
 999883 10^1793+10^240+10^130+1
 999884 10^1793+10^249+10^165+1
 999885 10^1793+10^250+10^234+1
 999886 10^1793+10^256+10^12+1
 999887 10^1793+10^258+10^10+1
 999888 10^1793+10^259+10^205+1
 999889 10^1793+10^262+10^72+1
 999890 10^1793+10^262+10^164+1
 999891 10^1793+10^263+10^63+1
 999892 10^1793+10^274+10^24+1
 999893 10^1793+10^283+10^111+1
 999894 10^1793+10^284+10^8+1
 999895 10^1793+10^288+10^104+1
 999896 10^1793+10^296+10^268+1
 999897 10^1793+10^308+10^264+1
 999898 10^1793+10^309+10^149+1
 999899 10^1793+10^309+10^213+1
 999900 10^1793+10^310+10^228+1
 999901 10^1793+10^310+10^294+1
 999902 10^1793+10^319+10^81+1
 999903 10^1793+10^320+10^276+1
 999904 10^1793+10^321+10^279+1
 999905 10^1793+10^330+10^152+1
 999906 10^1793+10^332+10^272+1
 999907 10^1793+10^345+10^207+1
 999908 10^1793+10^347+10^111+1
 999909 10^1793+10^357+10^183+1
 999910 10^1793+10^357+10^309+1
 999911 10^1793+10^367+10^129+1
 999912 10^1793+10^373+10^15+1
 999913 10^1793+10^373+10^159+1
 999914 10^1793+10^376+10^282+1
 999915 10^1793+10^382+10^108+1
 999916 10^1793+10^384+10^362+1
 999917 10^1793+10^391+10^247+1
 999918 10^1793+10^396+10^82+1
 999919 10^1793+10^396+10^370+1
 999920 10^1793+10^398+10^180+1
 999921 10^1793+10^406+10^42+1
 999922 10^1793+10^412+10^146+1
 999923 10^1793+10^417+10^135+1
 999924 10^1793+10^428+10^384+1
 999925 10^1793+10^430+10^90+1
 999926 10^1793+10^432+10^48+1
 999927 10^1793+10^433+10^27+1
 999928 10^1793+10^436+10^110+1
 999929 10^1793+10^436+10^146+1
 999930 10^1793+10^440+10^262+1
 999931 10^1793+10^440+10^348+1
 999932 10^1793+10^443+10^39+1
 999933 10^1793+10^445+10^39+1
 999934 10^1793+10^450+10^150+1
 999935 10^1793+10^453+10^271+1
 999936 10^1793+10^454+10^240+1
 999937 10^1793+10^454+10^354+1
 999938 10^1793+10^458+10^424+1
 999939 10^1793+10^462+10^426+1
 999940 10^1793+10^471+10^191+1
 999941 10^1793+10^471+10^465+1
 999942 10^1793+10^474+10^96+1
 999943 10^1793+10^474+10^108+1
 999944 10^1793+10^483+10^131+1
 999945 10^1793+10^487+10^405+1
 999946 10^1793+10^491+10^309+1
 999947 10^1793+10^493+10^259+1
 999948 10^1793+10^498+10^150+1
 999949 10^1793+10^499+10^297+1
 999950 10^1793+10^500+10^470+1
 999951 10^1793+10^506+10^430+1
 999952 10^1793+10^511+10^261+1
 999953 10^1793+10^525+10^183+1
 999954 10^1793+10^530+10^448+1
 999955 10^1793+10^536+10^2+1
 999956 10^1793+10^538+10^300+1
 999957 10^1793+10^539+10^195+1
 999958 10^1793+10^542+10^76+1
 999959 10^1793+10^546+10^408+1
 999960 10^1793+10^548+10^294+1
 999961 10^1793+10^548+10^482+1
 999962 10^1793+10^548+10^542+1
 999963 10^1793+10^555+10^537+1
 999964 10^1793+10^556+10^146+1
 999965 10^1793+10^558+10^106+1
 999966 10^1793+10^559+10^547+1
 999967 10^1793+10^563+10^333+1
 999968 10^1793+10^569+10^51+1
 999969 10^1793+10^570+10^98+1
 999970 10^1793+10^570+10^462+1
 999971 10^1793+10^582+10^520+1
 999972 10^1793+10^596+10^242+1
 999973 10^1793+10^596+10^328+1
 999974 10^1793+10^596+10^478+1
 999975 10^1793+10^598+10^506+1
 999976 10^1793+10^602+10^332+1
 999977 10^1793+10^609+10^363+1
 999978 10^1793+10^609+10^593+1
 999979 10^1793+10^610+10^168+1
 999980 10^1793+10^612+10^180+1
 999981 10^1793+10^612+10^260+1
 999982 10^1793+10^621+10^315+1
 999983 10^1793+10^627+10^395+1
 999984 10^1793+10^630+10^104+1
 999985 10^1793+10^631+10^117+1
 999986 10^1793+10^631+10^237+1
 999987 10^1793+10^631+10^471+1
 999988 10^1793+10^633+10^441+1
 999989 10^1793+10^638+10^108+1
 999990 10^1793+10^638+10^230+1
 999991 10^1793+10^644+10^590+1
 999992 10^1793+10^661+10^367+1
 999993 10^1793+10^663+10^91+1
 999994 10^1793+10^666+10^622+1
 999995 10^1793+10^667+10^259+1
 999996 10^1793+10^668+10^422+1
 999997 10^1793+10^670+10^276+1
 999998 10^1793+10^670+10^416+1
 999999 10^1793+10^672+10^510+1
1000000 10^1793+10^673+10^615+1
1000001 10^1793+10^675+10^135+1
1000002 10^1793+10^675+10^277+1
    ...
1000775 10^1793+10^1791+10^377+1
1000776 10^1793+10^1791+10^1665+1
1000777 10^1793+10^1792+10^902+1
1000778 10^1793+10^1792+10^980+1

Here is a (very pretty) current plot of A383675:
A383675 to n=2330; max=(2297,1877) [updated July 9]  click to enlarge