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-2 of 2 results.

A050675 Numbers n such that concatenation of numbers from 1 to n is nonsquarefree.

Original entry on oeis.org

2, 6, 8, 9, 12, 16, 17, 18, 20, 24, 25, 26, 27, 28, 32, 35, 36, 40, 44, 45, 48, 50, 52, 53, 54, 56, 60, 62, 63, 64, 68, 71, 72, 75, 76, 80, 81, 84, 85, 88, 89, 90, 92, 96, 98, 99, 100, 104, 107, 108, 112, 116, 117
Offset: 1

Views

Author

Patrick De Geest, Aug 15 1999

Keywords

Comments

All positive multiples of 4 are in this sequence other than 4. Similarly, all numbers which are 0 or 8 mod 9 are in this sequence and all multiples of 25 are in this sequence. - Charles R Greathouse IV, Sep 20 2012

Examples

			6 is a term because 123456 = 2*2*2*2*2*2*3*643 = 2^6*3*643, not squarefree.
		

Crossrefs

Programs

  • Magma
    a:=[];c:=1; for n in [2..55] do c:=c*10^#Intseq(n)+n; if not IsSquarefree(c) then Append(~a,n); end if; end for; a; // Marius A. Burtea, Oct 15 2019
    
  • Mathematica
    t={}; m=1; Do[m=FromDigits[Flatten[IntegerDigits[{m,n}]]]; If[!SquareFreeQ[m],AppendTo[t,n]],{n,2,32}]; t (* Jayanta Basu, May 30 2013 *)
    Module[{nn=120,cct},cct=Table[If[SquareFreeQ[FromDigits[Flatten[IntegerDigits/@Range[ n]]]],0,1],{n,nn}];Position[cct,?(#==1&)]]//Flatten (* _Harvey P. Dale, Sep 20 2023 *)
  • PARI
    conc(n) = my(s=""); for(k=1, n, s=Str(s, k)); eval(s); \\ A007908
    isok(n) = ! issquarefree(conc(n)); \\ Michel Marcus, Oct 16 2019

Formula

n < a(n) < 2.4n for n > 10. The upper constant can be lowered to 25/11 with more work. - Charles R Greathouse IV, Sep 20 2012

Extensions

Corrected by Charles R Greathouse IV, Sep 20 2012
More terms from Sean A. Irvine, Aug 16 2021

A050687 Numbers k such that A000422(k) is squarefree.

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 7, 10, 11, 12, 13, 14, 16, 19, 20, 21, 22, 23, 24, 25, 28, 29, 30, 31, 32, 33, 34, 37, 38, 39, 40, 41, 42, 43, 46, 47, 48, 49, 50, 51, 52, 55, 57, 58, 59, 60, 61, 64, 65, 66, 67, 68, 69, 70, 73, 74, 75, 76, 77, 78, 79, 82, 83, 84, 85, 86, 87
Offset: 1

Views

Author

Patrick De Geest, Aug 15 1999

Keywords

Crossrefs

Extensions

More terms from and name clarified by Sean A. Irvine, Aug 17 2021
Offset changed to 1 by Jinyuan Wang, Sep 04 2021
Showing 1-2 of 2 results.