login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A247843 Consecutive exclusionary squares: Numbers n such that n^2 does not contain digits of n and (n+1)^2 does not contain digits of n+1. 1

%I

%S 2,3,7,8,17,33,38,53,57,58,157,187,237,313,333,557,558,672,688,738,

%T 787,788,812,813,853,1557,2087,2107,2112,3112,3113,3157,3333,3357,

%U 3358,4453,4553,5598,5857,6672,6688,7017,7287,7772,7888,7908,8087,8337,15787,17157,18557,22112,32358

%N Consecutive exclusionary squares: Numbers n such that n^2 does not contain digits of n and (n+1)^2 does not contain digits of n+1.

%H Derek Orr, <a href="/A247843/b247843.txt">Table of n, a(n) for n = 1..53</a>

%o (Python)

%o for n in range(10**5):

%o ..s,t = str(n),str(n+1)

%o ..s2,t2 = str(n**2),str((n+1)**2)

%o ..c = 0

%o ..for i in s:

%o ....if s2.count(i):

%o ......c += 1

%o ......break

%o ..for j in t:

%o ....if t2.count(j):

%o ......c += 1

%o ......break

%o ..if not c:

%o ....print(n,end=', ')

%Y Cf. A029783.

%K nonn,base

%O 1,1

%A _Derek Orr_, Sep 25 2014

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 24 12:47 EDT 2021. Contains 346273 sequences. (Running on oeis4.)