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!)
A162902 An increasing sequence of alternatingly squarefree and nonsquarefree numbers. 1

%I #11 Mar 10 2024 04:01:57

%S 1,4,5,8,10,12,13,16,17,18,19,20,21,24,26,27,29,32,33,36,37,40,41,44,

%T 46,48,51,52,53,54,55,56,57,60,61,63,65,68,69,72,73,75,77,80,82,84,85,

%U 88,89,90,91,92,93,96,97,98,101,104,105,108,109,112,113,116,118,120,122

%N An increasing sequence of alternatingly squarefree and nonsquarefree numbers.

%C Composed of elements of A005117 at odd indices and of A013929 at even indices such that first differences of the combined sequence remain positive and minimal.

%H Amiram Eldar, <a href="/A162902/b162902.txt">Table of n, a(n) for n = 1..10000</a>

%t f[n_]:=Module[{a=m=0},Do[If[FactorInteger[n][[m,2]]>1,a=1],{m,Length[FactorInteger[n]]}]; a]; q=0;lst={};Do[If[f[n]==q,If[q==1,q=0,q=1];AppendTo[lst,n]],{n, 6!}];lst

%Y Cf. A005117, A013929.

%K nonn

%O 1,2

%A _Vladimir Joseph Stephan Orlovsky_, Jul 16 2009

%E Edited by _R. J. Mathar_, Jul 21 2009

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 19 12:14 EDT 2024. Contains 371792 sequences. (Running on oeis4.)