cp's OEIS Frontend

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.

Showing 1-1 of 1 results.

A095231 a(1)=1; a(n)=least positive integer such that the concatenation of all terms, including a(n), is == 1 (mod n).

Original entry on oeis.org

1, 1, 2, 1, 1, 1, 4, 5, 3, 1, 14, 9, 7, 7, 1, 3, 25, 5, 25, 21, 2, 9, 32, 1, 26, 5, 5, 17, 33, 1, 15, 21, 30, 37, 11, 33, 15, 27, 15, 21, 33, 51, 34, 53, 21, 29, 3, 13, 20, 1, 39, 57, 19, 35, 11, 29, 29, 31, 59, 21, 55, 51, 29, 7, 26, 75, 34, 49, 25, 31, 47, 3, 43, 77, 6, 45, 62, 25
Offset: 1

Views

Author

Amarnath Murthy, Jun 11 2004

Keywords

Comments

Conjecture: Every natural number occurs infinitely many times.
First differs from A140274 at a(17)=25. - Owen Whitby, May 20 2008

Examples

			a(6) = 1: 112111 mod 6 == 1.
		

Crossrefs

Cf. A140274.

Programs

  • Mathematica
    digs={1};Print[1];Do[notFound=True;a=1;While[notFound,k=FromDigits[dk=digs~Join~IntegerDigits[a]];If[Mod[k,n]==1,digs=dk;Print[a];notFound=False,a++ ]],{n,2,200}] (* Owen Whitby, May 20 2008 *)

Extensions

Edited and extended by Owen Whitby, May 20 2008
Showing 1-1 of 1 results.