linear algebra: search for a closed form for a recurrence relation $ 𝑎_𝑛 = (n) * a_ {n-1} + 1 $ and $ 𝑎_𝑛 = (n) * a_ {n-1} + n $?

Consider the sequence defined by
$$
begin {cases}
a_0 = 1 \
𝑎_𝑛 = (n) * a_ {n-1} +1 & text {if} n ge 1
end {cases}
. $$

Find a closed form for $ a_n $.

The second case is the following:
$$
begin {cases}
a_0 = 1 \
𝑎_𝑛 = (n) * a_ {n-1} + n & text {if} n ge 1
end {cases}
. $$

Find a closed form for $ a_n $.

c # – Pagination model of data output and search results with values ​​for UI

This is my first experience in designing legacy classes. I would like to receive comments on the interaction between the classes presented. It is unlikely that this code seems complicated. But if you need a description, please specify in the comments.

There are several classes that describe the model.

  • ToolStripUI Сontains properties to configure the user interface.
  • SearchArgs Inherited from EventArgs. Required to pass data to the search method.
  • PagedModelBase It is necessary to implement the data output on the page.
  • SearchModel Extension for PagedModelBase in the search part.
  • TableModel Extension for PagedModelBase in normal mode Forces of the Find() Y Delete() Methods to be implemented

They are used to create two models: Contract Y Worker. They inherit TableModel. And each one has an inner class. SearchModel that inherits SearchModel.

A change in PagedModelBase properties causes a change in ToolStripUI. A) Yes, ToolStripUI It always contains relevant data for the user interface.

The following code shows how Contract model Methods are used

Private VoB OnButtonToolStripClick (sender object, TSButton btn)
{
switch (form.currentTable)
{
TableName.CONTRACT case:
if (model.GetContractModel.GetSearch.IsSearch)
{
SearchTableContract (btn);
}
plus
{
TableContract (btn);
}
break;

TableName.WORKER case:
... // Equally
}
}

TableContract empty private (TSButton btn)
{
List list;
ToolStripUI ui;

switch (btn)
{
TSButton.SEARCH case:
list = model.GetContractModel.Find (form.GetSearchItem ());
break;
TSButton.RESET case:
list = model.GetContractModel.ReloadPage ();
break;
TSButton.FIRST case:
list = model.GetContractModel.FirstPage ();
break;
TSButton.LAST case:
list = model.GetContractModel.LastPage ();
break;
TSButton.NEXT case:
list = model.GetContractModel.NextPage ();
break;
TSButton.PREVIOUS case:
list = model.GetContractModel.PreviousPage ();
break;
default:
list = null;
break;
}

if (btn == TSButton.SEARCH)
{
ui = model.GetContractModel.GetSearch;
}
plus
{
ui = model.GetContractModel;
}

contractUC.FillPage (list);
form.SetToolStipUI (ui);
}

And the complete code of all the classes described. Perhaps more convenient to see through GitHub.

Public ContractModel GetContractModel {get; private set; }
public WorkerModel GetWorkerModel {get; private set; }
Public MainModel ()
{
GetContractModel = new ContractModel ();
GetWorkerModel = new WorkerModel ();
}


Public class ContractModel: TableModel
{
Internal SearchModel GetSearch {get; set; }

Public ContractModel ()
{
Size = Properties.Settings.Default.TableContractSize;
GetSearch = new SearchModel ();
}

internal annular bool Delete (int id)
{
Chronometer stopwatch = new Stopwatch ();
stopwatch.Start ();

bool result = true;

try
{
using (ModelContext model = new ModelContext ())
{
Contracts c = model.Contracts.Single (x => x.Id == id);
model.Remove (c);
model.SaveChanges ();
}
Tell--;
}
catch (ex exception)
{
result = false;
ShowMessage.Error (string.Format (
"Во время удаления договора из базы данных произошла ошибка. ID договора: {0}  n  n {1} {2}",
id, ex.Message, ex.InnerException.Message), "Исключение - MainModel.DeleteContract");
}

stopwatch.Stop ();
logger.Debug ("DeleteContract (): {0}", stopwatch.Elapsed);
return result
}
Internal cancellation list LoadPage ()
{
Chronometer stopwatch = new Stopwatch ();
stopwatch.Start ();

//GetSearch.IsSearch = false;
List source = null;
try
{
using (ModelContext model = new ModelContext ())
{

Count = model.Contracts.Count ();

Enumerable rows = model. Contracts
.OrderByDescending (r => r.Id)
.Skip (Page * Size)
.Take (Size)
.Select (c => new ContractTableRow
{
IdContract = c.Id,
Num = c.Num,
DateConclusion = c.DateConclusion.ToLongDateString (),
DateStartWork = c.DateStartWork.ToLongDateString (),
DateEndWork = c.DateEndWork.ToLongDateString (),
Salary = salary,

Worker = new Item {Id = c.Worker, Value = c.WorkerNavigation.FullName},
KindWork = c.ListKindWorks.Select (y => new ItemLong {Id = y.IdKindWork, Title = y.IdKindWorkNavigation.Title, Short = y.IdKindWorkNavigation.Short))
Subject = c.ListSubjects.Select (y => new ItemLong {Id = y.IdSubject, Title = y.IdSubjectNavigation.Title, Short = y.IdSubjectNavigation.Short})
});

source = rows.ToList ();
}

}
catch (ex exception)
{
source = null;
ShowMessage.Error (string.Format (
"Войти на Facebook Войти на Google ; & # 39; & # 39; & # 39; & # 39; & # 39; n & # 39; n & # 39; n & # 39; n & # 39; & # 39; & # 39 ; & # 39; & # 39; & # 39; & # 39; n & # 39; n & # 39; n & # 39; s & # 39; & # 39; & # 39; & # 39; & # 39; & # 39;
Page, MinPage, ex.Message, ex.InnerException.Message), "Исключение - MainModel.LoadPage");
}

stopwatch.Stop ();
logger.Debug ("Load page: {0}", stopwatch.Elapsed);

source of return;
}
Internal cancellation list Search (SearchArgs e)
{
returns GetSearch.FirstPage (e);
}
Internal cancellation list Reload page ()
{
GetSearch.IsSearch = false;
return base.ReloadPage ();
}

internal class SearchModel: SearchModel
    {
Public SearchModel ()
{
Size = Properties.Settings.Default.TableSearchSize;
ListTypeSearch = new list
            {
new ItemSearch {Value = "Num", Display = "Номер"},
new ItemSearch {Value = "DateConclusion", Display = "Заключен"},
new ItemSearch {Value = "Worker", Display = "Работник"},
new ItemSearch {Value = "KindWork", Display = "Вид работы"},
new ItemSearch {Value = "Subject", Display = "Объект"},
new ItemSearch {Value = "DateStartWork", Display = "Старт"},
new ItemSearch {Value = "DateEndWork", Display = "Окончание"},
new ItemSearch {Value = "Salary", Display = "Зарплата"}
};
}

Internal cancellation list LoadPage ()
{
Chronometer stopwatch = new Stopwatch ();
stopwatch.Start ();

string pattern = string.Format ("% {0}%", keyword);
List list = null;

try
{
using (var model = new ModelContext ())
{
IQueryable query = model.Contracts;

if (GetItemSearch.Value == "Num")
{
query = query.Where (c => EF.Functions.Like (c.Num, pattern));
}
else if (GetItemSearch.Value == "Salary")
{
query = query.Where (c => EF.Functions.Like (c.Salary.ToString (), pattern));
}
else if (GetItemSearch.Value == "DateConclusion")
{
query = query.Where (c => EF.Functions.Like (c.DateConclusion.ToLongDateString (), pattern));
}
else if (GetItemSearch.Value == "DateStartWork")
{
query = query.Where (c => EF.Functions.Like (c.DateStartWork.ToLongDateString (), pattern));
}
else if (GetItemSearch.Value == "DateEndWork")
{
query = query.Where (c => EF.Functions.Like (c.DateEndWork.ToLongDateString (), pattern));
}
else if (GetItemSearch.Value == "Worker")
{
query = query.Where (c => EF.Functions.Like (c.WorkerNavigation.FullName, pattern));
}
else if (GetItemSearch.Value == "KindWork")
{
query = model.ListKindWorks.Where (c => EF.Functions.Like (c.IdKindWorkNavigation.Short, pattern)). Select (c => c.IdContractNavigation);
}

else if (GetItemSearch.Value == "Subject")
{
query = model.ListSubjects.Where (c => EF.Functions.Like (c.IdSubjectNavigation.Short, pattern)). Select (c => c.IdContractNavigation);
}

Count = query.Count ();

list = query
.OrderBy (q => q.Id)
.Skip (Page * Size)
.Take (Size)
.Select (c => new ContractTableRow
{
IdContract = c.Id,
Num = c.Num,
DateConclusion = c.DateConclusion.ToLongDateString (),
DateStartWork = c.DateStartWork.ToLongDateString (),
DateEndWork = c.DateEndWork.ToLongDateString (),
Salary = salary,

Worker = new Item {Id = c.Worker, Value = c.WorkerNavigation.FullName},
KindWork = c.ListKindWorks.Select (y => new ItemLong {Id = y.IdKindWork, Title = y.IdKindWorkNavigation.Title, Short = y.IdKindWorkNavigation.Short))
Subject = c.ListSubjects.Select (y => new ItemLong {Id = y.IdSubject, Title = y.IdSubjectNavigation.Title, Short = y.IdSubjectNavigation.Short})
}).To list();
}
}
catch (ex exception)
{
ShowMessage.Error (string.Format ("Во время поиска произошла ошибка.  N  n {0} {1}",
ex.Message, ex.InnerException.Message));
}



stopwatch.Stop ();
logger.Debug ("Поиск договора: {0}", stopwatch.Elapsed);

return list
}
}

}

public class WorkerModel: TableModel
{
Internal SearchModel GetSearch {get; set; }

public worker model ()
{
Size = Properties.Settings.Default.TableWorkerSize;
GetSearch = new SearchModel ();
}

internal annular bool Delete (int id)
{
Chronometer stopwatch = new Stopwatch ();
stopwatch.Start ();

bool result = true;

try
{
using (ModelContext model = new ModelContext ())
{
Workers w = model.Workers.Single (x => x.Id == id);
model.Remove (w);
model.SaveChanges ();
}
Tell--;
}
catch (ex exception)
{
result = false;
ShowMessage.Error (string.Format (
"Во время удаления данных работника из базы данных произошла ошибка. ID работника: {0}  n  n {1} {2}".
id, ex.Message, ex.InnerException.Message), "Исключение - MainModel.DeleteContract");
}

stopwatch.Stop ();
logger.Debug ("DeleteWorker (): {0}", stopwatch.Elapsed);
return result
}
Internal cancellation list LoadPage ()
{
Chronometer stopwatch = new Stopwatch ();
stopwatch.Start ();

//GetSearch.IsSearch = false;
List source = null;
try
{
using (ModelContext model = new ModelContext ())
{

Count = model.Workers.Count ();

Enumerable rows = model.workers
.OrderByDescending (r => r.Id)
.Skip (Page * Size)
.Take (Size)
.Select (w => new WorkerTableRow
{
IdWorker = w.Id,
FullName = w.FullName,
PassportNumber = w.PassportNumber,
PassportSeries = w.PassportSeries,
Address = w.Address,
BankAccount = w.BankAccount,
DateIssued = w.DateIssued.ToLongDateString (),

Issued = new ItemLong {Id = w.IssuedNavigation.Id, Short = w.IssuedNavigation.ShortTitle, Title = w.IssuedNavigation.Title},
BankItem = new ItemLong {Id = w.BankNavigation.Id, Short = w.BankNavigation.ShortTitle, Title = w.BankNavigation.Title},
});

source = rows.ToList ();
}
}
catch (ex exception)
{
source = null;
ShowMessage.Error (string.Format (
"Войти на Facebook Войти на Google
Page, MinPage, ex.Message, ex.InnerException.Message), "Исключение - MainModel.LoadPage");
}

stopwatch.Stop ();
logger.Debug ("Load page: {0}", stopwatch.Elapsed);

source of return;
}
Internal cancellation list Search (SearchArgs e)
{
returns GetSearch.FirstPage (e);
}
Internal cancellation list Reload page ()
{
GetSearch.IsSearch = false;
return base.ReloadPage ();
}

internal class SearchModel: SearchModel
    {
Public SearchModel ()
{
Size = Properties.Settings.Default.TableSearchSize;
ListTypeSearch = new list
            {
New ItemSearch {Value = "Id", Display = "ID"},
New ItemSearch {Value = "FullName", Display = "ФИО"},
new ItemSearch {Value = "PassportSeries", Display = "Серия паспорта"},
new ItemSearch {Value = "PassportNumber", Display = "Личный номер"},
new ItemSearch {Value = "DateIssued", Display = "Дата выдачи"},
new ItemSearch {Value = "Address", Display = "Адрес"},
new ItemSearch {Value = "BankAccount", Display = "Счет"}
};
}

Internal cancellation list LoadPage ()
{
Chronometer stopwatch = new Stopwatch ();
stopwatch.Start ();

string pattern = string.Format ("% {0}%", keyword);
List list = null;

try
{
using (ModelContext model = new ModelContext ())
{
IQueryable query = model.workers;

if (GetItemSearch.Value == "Id")
query = query.Where (w => EF.Functions.Like (w.Id.ToString (), pattern));

else if (GetItemSearch.Value == "FullName")
query = query.Where (w => EF.Functions.Like (w.FullName, pattern));

else if (GetItemSearch.Value == "PassportSeries")
query = query.Where (w => EF.Functions.Like (w.PassportSeries, pattern));

else if (GetItemSearch.Value == "PassportNumber")
query = query.Where (w => EF.Functions.Like (w.PassportNumber, pattern));

else if (GetItemSearch.Value == "Address")
query = query.Where (w => EF.Functions.Like (w.Address, pattern));

else if (GetItemSearch.Value == "BankAccount")
query = query.Where (w => EF.Functions.Like (w.BankAccount, pattern));

else if (GetItemSearch.Value == "DateIssued")
query = query.Where (w => EF.Functions.Like (w.DateIssued.ToLongDateString (), pattern));

Count = query.Count ();

list = query
.OrderBy (q => q.Id)
.Skip (Page * Size)
.Take (Size)
.Select (w => new WorkerTableRow
{
IdWorker = w.Id,
FullName = w.FullName,
PassportNumber = w.PassportNumber,
PassportSeries = w.PassportSeries,
Address = w.Address,
BankAccount = w.BankAccount,
DateIssued = w.DateIssued.ToLongDateString (),

Issued = new ItemLong {Id = w.IssuedNavigation.Id, Short = w.IssuedNavigation.ShortTitle, Title = w.IssuedNavigation.Title},
BankItem = new ItemLong {Id = w.BankNavigation.Id, Short = w.BankNavigation.ShortTitle, Title = w.BankNavigation.Title},
}).To list();
}
}
catch (ex exception)
{
ShowMessage.Error (string.Format ("Во время поиска произошла ошибка.  N  n {0} {1}",
ex.Message, ex.InnerException.Message));
}

stopwatch.Stop ();
logger.Debug ("Поиск работника: {0}", stopwatch.Elapsed);

return list
}
}
}


public abstract class TableModel : PagedModelBase
{
Internal vacuum Added ()
{
Account ++;
}
Internal summary bool Delete (int id);
Internal summary of the list Search (SearchArgs e);
}

public abstract class SearchModel : PagedModelBase
{
private bool isSearch;
internal bool IsSearch
{
get {return isSearch; }
set
{
isSearch = value;
Button[2] = IsSearch;
}
}

Internal list ListTypeSearch {get; set; }
Internal ItemSearch GetItemSearch {get; set; }
internal string GetSeachResultText
{
obtain
{
string text
yes (Account == 0)
{
text = string.Empty;
}
plus
{
text = string.Format ("Найдено: {0}", Count);
}
return text
}
}

Internal list FirstPage (SearchArgs e)
{
IsSearch = true;
GetItemSearch = e.Item;
Keyword = e.Keyword;
List list = FirstPage ();
PageNumText = GetPageNumText;
ResultSearchText = GetSeachResultText;
return list
}
}

public abstract class PagedModelBase : ToolStripUI
{
internal logger logger = NLog.LogManager.GetCurrentClassLogger ();

internal event EventHandler InnerChangePageEvent;


private int account;
private int page = -1;
private int maxPage = 1;


internal int MaxPage
{
get {return maxPage; }
set
{
maxPage = value;

yes (Page> = MaxPage)
{
Page = MaxPage - 1;
InnerChangePageEvent? .Invoke (this, EventArgs.Empty);
}
more if (Page == MaxPage - 1)
{
Button[1] = false;
}
plus
{
Button[1] = true;
}
}
}
internal int MinPage {get; }
internal internal account
{
get {return account; }
set
{
account = value;
yes (Account> 0)
{
MaxPage = GetMaxPage ();
}
PageNumText = GetPageNumText;
}
}
internal size int {get; set; }
internal internal page
{
get {return page; }
set
{
yes (value <= MinPage)
{
page = MinPage;
Button[0] = false;
}
plus
{
page = value;
Button[0] = true;
}
}
}
int private GetMaxPage ()
{
return Convert.ToInt32 (Math.Ceiling ((double) Count / Size));
}
internal string GetPageNumText
{
get {return string.Format ("{0} из {1}", Page + 1, MaxPage); }
}


Internal virtual list Reload page ()
{
return LoadPage ();
}
Internal list First page()
{
returns CustomPage (MinPage);
}
Internal list Last page()
{
returns CustomPage (MaxPage - 1);
}
Internal list Next page()
{
return CustomPage (Page + 1);
}
Internal list Previous page()
{
return CustomPage (Page - 1);
}
Internal list CustomPage (int customPage)
{
List list;

Page = customPage;
list = LoadPage ();

return list
}


Internal summary of the list LoadPage ();
}

public class ToolStripUI
{
public bool[] Button {get; set; } = new bool[3];
public string PageNumText {get; set; }
public string Keyword {get; set; } = string.Empty;
public string ResultSearchText {get; set; } = string.Empty;
}

public class SearchArgs: EventArgs
{
Public item of article search;
public string Keyword;

Public SearchArgs (ItemSearch item, string keyword)
{
Item = item;
Keyword = keyword;
}
}

The SharePoint search index journal file occupied a space of 400 GB

We have SharePoint 2013 in the facilities with two search servers and the search elements are 20 million.
Server 1 with primary index component is running fine and server 2 with index
Replication component degraded
When the search status is verified, it shows "index desynchronized and up to date", but it is running for more than 36 hours.

After verifying the Journal file, it occupied a space of 400 GB, is continuously occupying more data and using all the disk space.

What could be the problem and how to solve it?

co.combinatorics – Binary search extension to determine a hyperplane by dividing a set of points into $ mathbb {R} ^ d $

They give us a set $ S $ of $ n $ points in $ mathbb {R} ^ d $ and a vector (hidden) $ mathbf {w} in mathbb {R} ^ d $, where each point $ mathbf {v} in S $ is associated with a binary tag equal to the sign of $ mathbf {w} ^ { top} mathbf {v} $. Set $ S $ It is known but both the labeling assignment of its points and the vector. $ mathbf {w} $ they are initially unknown. Sequentially, at each step of the time, we can select a point of $ S $ and ask for its label, so that its label is revealed.


Question: Which is the minimum number $ q $ (expressed in terms of $ n $ Y $ d $) of the necessary consultations to determine the labels of everyone points in $ S $, finished everyone possible sets $ S in mathbb {R} ^ d $?


Example: Yes $ d = 1 $ clearly $ q $ it is logarithmic in $ n $.

changeling the lost 2e – Does merging with your search give you merit?

In the 1d4chan summary of changeling the lost there is a line that says

… Or, you can do the "difficult but moral" and try to merge with it (since, you know, it's you), which gives you even more great things and merits.

However, in the autumn nightmares there is no mention of a merit received from the merger with its scope. The exact line with respect to what you get when merging with your search is:

When finished, the fetch
is gone and the character gains a point of clarity, as well as the
Most valuable memories of his time in exile.

What I want to ask is whether there is a merit that represents the acquisition of those memories or something similar that is mentioned in another book.

Search multiple keywords with wp_query using a query

I use this wp_query to get results for a specific keyword and sort by price. I need to search several keywords at the same time and return results and sort them by product price. How is it possible to use a wp_query? Any appreciated example.

    $ args = array (

& # 39; s & # 39; s => "t",
& # 39; post_type & # 39; => & # 39; post & # 39 ;,
& # 39; post_status & # 39; => & # 39; publish & # 39 ;,
& Phrase # & # 39; => true,
& # 39; paged & # 39; => $ paged,
& # 39; meta_query & # 39; => [

            'product_price'  => [ 'key' => 'product_price', 'value' => '0', 'compare' => '>' , 'type'=>'NUMERIC'],


],

& # 39; orderby & # 39; => & # 39; product_price & # 39 ;,
& # 39; order & # 39; => & # 39; ASC & # 39;
);

Return the entire database based on the Excel search

How can I return all the results of a search-based online database to Excel?
For example, this link: http://natega.thanwya.emis.gov.eg/
This link returns results if you enter a number between approximately 150000 and 600000.
I see that there is an option in Excel to import a database online, but it needs its name and I do not know how to get its name.

seo – There are no impressions according to the performance reports of the Google search console. Why and how to solve it?

It has been a month and a half since I opened the website and 3 weeks since I entered the first significant content compatible with SEO (you can check the website here). In this month I have 19 impressions a day, another 18, the rest is 2-3 impressions per day. And those impressions are extremely irrelevant queries. Why is this happening? How can I solve it?

mysql – how to search in a language and get results for another language

I have two tables

product

| ---- | --------------------- |
| id | code |
| ---- | --------------------- |
| 1 | A |
| 2 | B |

Y

product_tarnslation
| --- | ------ | --------------------- |
| pid | name | local
| --- | ------ | --------------------- |
| 1 | prod A | in |
| 2 | prod B | in |
| 1 | منتج | ar |
| 2 | prod B | ar |

I need a query to search in any location, but get a result for a single desired locale.
e.g:
when I search for puncture and I want Arabica translation

Expected result
| --- | ------ | --------------------- |
| pid | name | local
| --- | ------ | --------------------- |
| 1 | منتج | ar |
| 2 | prod B | ar |

TO UPDATE
I solved it by self-union, but it resulted in a slow query.

SELECT t1.name as t1name, t2.name as t2name, t1.locale as t1locale, t2.locale as t2locale
DE product_translation t1
INNER JOIN product_translation t2
on t1.translatable_id = t2.translatable_id
WHERE t1.name I LIKE & # 39;% prod% & # 39;
And t2.locale = & # 39; ar & # 39;

shadowrun sr5 – Search for a focus

I'm planning to do a search for a focus for our player magician.

Brief description of our group: We are a group of 2 game players with 4 active players, and we plan to do a specific search for each player.

But I need help to design the search for the player magician. I'm planning to send him on a solo adventure initiated by a vision. But I'm not really sure how to plan the rest. The player is an airtight magician. If you (the community) have an idea, share it with me.

Basically I want some kind of Sword to be your Focus.

By the way, we are in a personalized environment of Great Britain (basically, fewer cities and more wild areas).