login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A173517 a(n) = k if n is the k-th nonsquare, zero otherwise. 3

%I

%S 0,0,1,2,0,3,4,5,6,0,7,8,9,10,11,12,0,13,14,15,16,17,18,19,20,0,21,22,

%T 23,24,25,26,27,28,29,30,0,31,32,33,34,35,36,37,38,39,40,41,42,0,43,

%U 44,45,46,47,48,49,50,51,52,53,54,55,56,0,57,58,59,60,61,62,63,64,65,66,67

%N a(n) = k if n is the k-th nonsquare, zero otherwise.

%C a(A000037(n)) = n; a(A000290(n)) = 0.

%C a(n)*A037213(n) = 0 for all n.

%H Reinhard Zumkeller, <a href="/A173517/b173517.txt">Table of n, a(n) for n = 0..1000</a>

%F a(n) = (1 - A010052(n))*A028391(n).

%o (Haskell)

%o a173517 n = (1 - a010052 n) * a028391 n

%o -- _Reinhard Zumkeller_, Dec 15 2013

%o (PARI) a(n)=if(issquare(n), 0, n-sqrtint(n)) \\ _Charles R Greathouse IV_, Sep 02 2015

%Y Cf. A000037, A000196, A000290, A010052, A028391, A037213.

%K nonn,easy

%O 0,4

%A _Reinhard Zumkeller_, Feb 20 2010

%E Definition revised by _Reinhard Zumkeller_, Dec 15 2013, at the suggestion of _Antti Karttunen_, who further edited the name

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified October 20 11:05 EDT 2018. Contains 316379 sequences. (Running on oeis4.)