login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A257631 Near-repunit triangular numbers. 0
10, 15, 21, 91, 171, 1711 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
A near-repunit number is a number all but one of whose digits are 1's. No other near-repunit triangular number is known up to 10^15.
No more terms less than 10^1000. It is likely there are no more terms. - Chai Wah Wu, Mar 25 2020
LINKS
PROG
(Python)
from sympy import integer_nthroot
def istri(n): return integer_nthroot(8*n+1, 2)[1]
def near_repunits(digits):
for loc in range(1, digits):
yield int("1"*loc + "0" + "1"*(digits-loc-1))
for loc in range(1, digits+1):
for d in "23456789":
yield int("1"*(digits-loc) + d + "1"*(loc-1))
def afind(maxdigits):
for digits in range(2, maxdigits+1):
for t in near_repunits(digits):
if istri(t): print(t, end=", ")
afind(200) # Michael S. Branicky, Oct 15 2021
CROSSREFS
Sequence in context: A075524 A048028 A048045 * A115682 A075523 A115679
KEYWORD
base,nonn,more
AUTHOR
Shyam Sunder Gupta, Jul 12 2015
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 06:14 EDT 2024. Contains 371964 sequences. (Running on oeis4.)